Skip to content

Commit

Permalink
feat: Send Celery retry count
Browse files Browse the repository at this point in the history
  • Loading branch information
szokeasaurusrex committed Apr 12, 2024
1 parent 467bde9 commit bbf6bd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sentry_sdk/integrations/celery/__init__.py
Expand Up @@ -305,7 +305,8 @@ def _inner(*args, **kwargs):
"kwargs": args[2],
}
},
):
) as transaction:
transaction.set_data("retry_count", task.request.retries)
return f(*args, **kwargs)

return _inner # type: ignore
Expand Down

0 comments on commit bbf6bd3

Please sign in to comment.