Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ef2ee8f

Browse files
committedDec 20, 2024
fix: remove the origin check
1 parent 54cbf59 commit ef2ee8f

File tree

1 file changed

+1
-6
lines changed
  • instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery

1 file changed

+1
-6
lines changed
 

‎instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/utils.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ def set_attributes_from_context(span, context):
7676

7777
attribute_name = None
7878

79-
# Celery 4.0 uses `origin` instead of `hostname`; this change preserves
80-
# the same name for the tag despite Celery version
81-
if key == "origin":
82-
key = "hostname"
83-
84-
elif key == "delivery_info":
79+
if key == "delivery_info":
8580
# Get also destination from this
8681
routing_key = value.get("routing_key")
8782

0 commit comments

Comments
 (0)
Please sign in to comment.