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 7, 2024
1 parent df18b49 commit 2b51425
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sentry_sdk/integrations/celery/__init__.py
Expand Up @@ -341,6 +341,11 @@ def _inner(*args, **kwargs):
span.set_data("messaging.message.id", task.request.id)
with capture_internal_exceptions():
span.set_data("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:
exc_info = sys.exc_info()
Expand Down

0 comments on commit 2b51425

Please sign in to comment.