We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7376e5a commit f808802Copy full SHA for f808802
sentry_sdk/integrations/celery/__init__.py
@@ -254,6 +254,10 @@ def apply_async(*args, **kwargs):
254
return f(*args, **kwargs)
255
256
kwarg_headers = kwargs.get("headers") or {}
257
+ propagate_traces = kwarg_headers.pop("sentry-propagate-traces", True)
258
+
259
+ if not propagate_traces:
260
+ return f(*args, **kwargs)
261
262
if isinstance(args[0], Task):
263
task_name = args[0].name # type: str
0 commit comments