Skip to content

Commit 7676dc1

Browse files
antonpirkera-hariti
authored andcommitted
Small update to distributed tracing in Celery (#10161)
1 parent 6c1e344 commit 7676dc1

File tree

1 file changed

+9
-5
lines changed
  • docs/platforms/python/integrations/celery

1 file changed

+9
-5
lines changed

docs/platforms/python/integrations/celery/index.mdx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,16 @@ You can pass the following keyword arguments to `CeleryIntegration()`:
9393

9494
- `propagate_traces`
9595

96-
Propagate Sentry tracing information to the Celery task. This makes it possible to link Celery task errors to the function that triggered the task.
96+
Propagate Sentry tracing information to the Celery task. This makes it possible to link Celery task errors to the function that triggered the task.
9797

98-
If this is set to `False`:
98+
If this is set to `False`:
9999

100-
- errors in Celery tasks won't be matched to the triggering function.
101-
- your Celery tasks will start a new trace and won't be connected to the trace in the calling function.
100+
- errors in Celery tasks won't be matched to the triggering function.
101+
- your Celery tasks will start a new trace and won't be connected to the trace in the calling function.
102102

103-
The default is `True`.
103+
The default is `True`.
104+
105+
See [Distributed Traces](#distributed-traces) below to learn how to get more fine grained control over distributed tracing in Celery tasks.
104106

105107
- `monitor_beat_tasks`:
106108

@@ -128,6 +130,8 @@ You can disable this globally with the `propagate_traces` parameter, documented
128130

129131
If you want to have more fine-grained control over trace distribution, you can override the `propagate_traces` option by passing the `sentry-propagate-traces` header when starting the Celery task:
130132

133+
**Note:** The `CeleryIntegration` does not utilize the `traces_sample_rate` config option for deciding if a trace should be propagated into a Celery task.
134+
131135
```python
132136
import sentry_sdk
133137

0 commit comments

Comments
 (0)