Skip to content

Commit

Permalink
fixup! fix getattr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
robrap authored Nov 21, 2024
1 parent 9e14b61 commit 4e8ddad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def on_span_start(self, span):
"""
Adds code owner span tag for celery run spans at span creation.
"""
if getattr(span, 'name') == 'celery.run':
if getattr(span, 'name', None) == 'celery.run':
# We can use this for celery spans, because the resource name is more predictable
# and available from the start. For django requests, we'll instead continue to use
# django middleware for setting code owner.
Expand Down

0 comments on commit 4e8ddad

Please sign in to comment.