From 118d45b803740cde5aae45e32124961948f54725 Mon Sep 17 00:00:00 2001 From: shivanshu Date: Thu, 12 Dec 2024 18:51:54 +0530 Subject: [PATCH] fix: remove the origin check --- .../src/opentelemetry/instrumentation/celery/utils.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/utils.py b/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/utils.py index 6af310df5a..4761780928 100644 --- a/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/utils.py +++ b/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/utils.py @@ -76,12 +76,7 @@ def set_attributes_from_context(span, context): attribute_name = None - # Celery 4.0 uses `origin` instead of `hostname`; this change preserves - # the same name for the tag despite Celery version - if key == "origin": - key = "hostname" - - elif key == "delivery_info": + if key == "delivery_info": # Get also destination from this routing_key = value.get("routing_key")