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 11, 2024
1 parent 5ae8dc7 commit 4162d95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sentry_sdk/integrations/celery/__init__.py
Expand Up @@ -324,7 +324,8 @@ def _inner(*args, **kwargs):
"kwargs": args[2],
}
},
):
) as transaction:
transaction.set_data("retry_count", task.request.retries)

Check warning on line 328 in sentry_sdk/integrations/celery/__init__.py

View check run for this annotation

Codecov / codecov/patch

sentry_sdk/integrations/celery/__init__.py#L328

Added line #L328 was not covered by tests
return f(*args, **kwargs)

return _inner # type: ignore
Expand Down

0 comments on commit 4162d95

Please sign in to comment.