Skip to content

Commit

Permalink
feat: Send Celery retry count
Browse files Browse the repository at this point in the history
Ref #2961
  • Loading branch information
szokeasaurusrex committed Apr 26, 2024
1 parent 3bf4c12 commit df5d7f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sentry_sdk/integrations/celery/__init__.py
Expand Up @@ -337,6 +337,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.retry.count", task.request.retries)
return f(*args, **kwargs)
except Exception:
exc_info = sys.exc_info()
Expand Down

0 comments on commit df5d7f2

Please sign in to comment.