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 Apr 30, 2024
1 parent d5a29b9 commit cd65142
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sentry_sdk/integrations/celery/__init__.py
Expand Up @@ -336,6 +336,9 @@ def _inner(*args, **kwargs):
with sentry_sdk.start_span(
op=OP.QUEUE_PROCESS, description=task.name
) as span:
span.set_data(
"messaging.system", task.app.connection().transport.driver_type
)
_set_messaging_destination_name(task, span)
span.set_data("messaging.message.id", task.request.id)
span.set_data("messaging.message.retry.count", task.request.retries)
Expand Down

0 comments on commit cd65142

Please sign in to comment.