Skip to content

Commit

Permalink
fixup! minor update
Browse files Browse the repository at this point in the history
Co-authored-by: Tim McCormack <[email protected]>
  • Loading branch information
robrap and timmc-edx authored Nov 21, 2024
1 parent 71b0c45 commit 6901490
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 hasattr(span, 'name') and span.name == 'celery.run':
if getattr(span, 'name') == '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 6901490

Please sign in to comment.