From ad1f25e57601a9cfbe8eb7a84695b337f1b15cb4 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 29 Jan 2022 15:19:44 +0000 Subject: [PATCH] opentelemetry: enrich service for community.docker.docker_login (#4104) (#4109) * opentelemetry: support service for community.docker.docker_login * changelog (cherry picked from commit e793e2e94f173c2d9847d528e81d2acd40ff7d11) Co-authored-by: Victor Martinez --- .../4104-opentelemetry_plugin-enrich_docker_login.yaml | 2 ++ plugins/callback/opentelemetry.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/4104-opentelemetry_plugin-enrich_docker_login.yaml diff --git a/changelogs/fragments/4104-opentelemetry_plugin-enrich_docker_login.yaml b/changelogs/fragments/4104-opentelemetry_plugin-enrich_docker_login.yaml new file mode 100644 index 0000000000..fd05ffccfe --- /dev/null +++ b/changelogs/fragments/4104-opentelemetry_plugin-enrich_docker_login.yaml @@ -0,0 +1,2 @@ +minor_changes: + - opentelemetry_plugin - enrich service when using the ``docker_login`` (https://github.com/ansible-collections/community.general/pull/4104). diff --git a/plugins/callback/opentelemetry.py b/plugins/callback/opentelemetry.py index 716fc9eee7..db6ea15dc4 100644 --- a/plugins/callback/opentelemetry.py +++ b/plugins/callback/opentelemetry.py @@ -319,7 +319,7 @@ class OpenTelemetrySource(object): @staticmethod def url_from_args(args): # the order matters - url_args = ("url", "api_url", "baseurl", "repo", "server_url", "chart_repo_url") + url_args = ("url", "api_url", "baseurl", "repo", "server_url", "chart_repo_url", "registry_url") for arg in url_args: if args is not None and args.get(arg): return args.get(arg)