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 24, 2024
1 parent f941370 commit 3632f5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sentry_sdk/integrations/celery/__init__.py
Expand Up @@ -300,7 +300,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 3632f5c

Please sign in to comment.