You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(celery): Allow to override propagate_traces per task (#2331)
Adds support for a sentry-propagate-traces header on apply_async that
overrides the default behavior set through the Celery integration's
propagate_traces flag.
Example usage:
my_task.apply_async(..., headers={"sentry-propagate-traces": False})
Example use case:
We ourselves have a task that is running once every two weeks and it is sampled with ~0.01 Percent. So we can one transaction from this task a year (give or take). This task starts hundreds of child tasks. All those child tasks will inherit the sampling decision from the original task and thus will be dropped most of the times. But we want to have those child tasks transactions in our backend no matter the sampling decision of the parent.
---------
Co-authored-by: Anton Pirker <[email protected]>
0 commit comments