Skip to content

Commit

Permalink
fix: remove the origin check
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshuraj1333 committed Dec 12, 2024
1 parent c530f0d commit 118d45b
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 118d45b

Please sign in to comment.