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
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
# Sentry SDK Migration Guide
2
2
3
-
4
3
## Upgrading to 3.0
5
4
6
5
Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of what's changed. Looking for a more digestible summary? See the [guide in the docs](https://docs.sentry.io/platforms/python/migration/2.x-to-3.x) with the most common migration patterns.
@@ -19,11 +18,14 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
19
18
-`sentry_sdk.continue_trace` no longer returns a `Transaction` and is now a context manager.
20
19
- Redis integration: In Redis pipeline spans there is no `span["data"]["redis.commands"]` that contains a dict `{"count": 3, "first_ten": ["cmd1", "cmd2", ...]}` but instead `span["data"]["redis.commands.count"]` (containing `3`) and `span["data"]["redis.commands.first_ten"]` (containing `["cmd1", "cmd2", ...]`).
21
20
- clickhouse-driver integration: The query is now available under the `db.query.text` span attribute (only if `send_default_pii` is `True`).
21
+
-`sentry_sdk.init` now returns `None` instead of a context manager.
22
22
23
23
### Removed
24
24
25
25
- Spans no longer have a `description`. Use `name` instead.
26
26
- Dropped support for Python 3.6.
27
+
- The PyMongo integration no longer sets tags. The data is still accessible via span attributes.
28
+
- The PyMongo integration doesn't set `operation_ids` anymore. The individual IDs (`operation_id`, `request_id`, `session_id`) are now accessible as separate span attributes.
27
29
-`sentry_sdk.metrics` and associated metrics APIs have been removed as Sentry no longer accepts metrics data in this form. See https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics
28
30
- The experimental options `enable_metrics`, `before_emit_metric` and `metric_code_locations` have been removed.
29
31
- When setting span status, the HTTP status code is no longer automatically added as a tag.
@@ -38,7 +40,6 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
38
40
-`continue_from_headers`, `continue_from_environ` and `from_traceparent` have been removed, please use top-level API `sentry_sdk.continue_trace` instead.
39
41
-`PropagationContext` constructor no longer takes a `dynamic_sampling_context` but takes a `baggage` object instead.
40
42
41
-
42
43
### Deprecated
43
44
44
45
-`sentry_sdk.start_transaction` is deprecated. Use `sentry_sdk.start_span` instead.
0 commit comments