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
Copy file name to clipboardExpand all lines: MIGRATION_GUIDE.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,16 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
21
21
- clickhouse-driver integration: The query is now available under the `db.query.text` span attribute (only if `send_default_pii` is `True`).
22
22
-`sentry_sdk.init` now returns `None` instead of a context manager.
23
23
- The `sampling_context` argument of `traces_sampler` now additionally contains all span attributes known at span start.
24
+
- If you're using the Celery integration, the `sampling_context` argument of `traces_sampler` doesn't contain the `celery_job` dictionary anymore. Instead, the individual keys are now available as:
25
+
26
+
| Dictionary keys | Sampling context key |
27
+
| ---------------------- | -------------------- |
28
+
|`celery_job["args"]`|`celery.job.args`|
29
+
|`celery_job["kwargs"]`|`celery.job.kwargs`|
30
+
|`celery_job["task"]`|`celery.job.task`|
31
+
32
+
Note that all of these are serialized, i.e., not the original `args` and `kwargs` but rather OpenTelemetry-friendly span attributes.
33
+
24
34
- If you're using the AIOHTTP integration, the `sampling_context` argument of `traces_sampler` doesn't contain the `aiohttp_request` object anymore. Instead, some of the individual properties of the request are accessible, if available, as follows:
25
35
26
36
| Request property | Sampling context key(s) |
@@ -71,15 +81,15 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
71
81
|`client`|`client.address`, `client.port`|
72
82
| full URL |`url.full`|
73
83
74
-
- If you're using the RQ integration, the `sampling_context` argument of `traces_sampler` doesn't contain the `rq_job` object anymore. Instead, the individual properties of the scope, if available, are accessible as follows:
84
+
- If you're using the RQ integration, the `sampling_context` argument of `traces_sampler` doesn't contain the `rq_job` object anymore. Instead, the individual properties of the job and the queue, if available, are accessible as follows:
0 commit comments