Skip to content

Commit

Permalink
feat(celery): Set "messaging.system" on span
Browse files Browse the repository at this point in the history
ref #2951
  • Loading branch information
szokeasaurusrex committed May 10, 2024
1 parent 9af5324 commit 60c2d53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sentry_sdk/integrations/celery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ def _inner(*args, **kwargs):
span.set_data(
SPANDATA.MESSAGING_MESSAGE_RETRY_COUNT, task.request.retries
)
with capture_internal_exceptions():
span.set_data(
"messaging.system", task.app.connection().transport.driver_type
)

return f(*args, **kwargs)
except Exception:
Expand Down

0 comments on commit 60c2d53

Please sign in to comment.