Skip to content

Commit

Permalink
feat(celery): Set task ID on span
Browse files Browse the repository at this point in the history
Closes #2974
  • Loading branch information
szokeasaurusrex committed May 10, 2024
1 parent 6ed9bf7 commit 472cb85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sentry_sdk/integrations/celery/__init__.py
Expand Up @@ -356,6 +356,7 @@ def _inner(*args, **kwargs):
op=OP.QUEUE_PROCESS, description=task.name
) as span:
_set_messaging_destination_name(task, span)
span.set_data("messaging.message.id", task.request.id)
with capture_internal_exceptions():
span.set_data(
SPANDATA.MESSAGING_MESSAGE_RETRY_COUNT, task.request.retries
Expand Down

0 comments on commit 472cb85

Please sign in to comment.