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
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
17
17
-`Span.finish()` no longer returns the `event_id` if the event is sent to sentry.
18
18
- The `Profile()` constructor does not accept a `hub` parameter anymore.
19
19
- A `Profile` object does not have a `.hub` property anymore.
20
+
-`MAX_PROFILE_DURATION_NS`, `PROFILE_MINIMUM_SAMPLES`, `Profile`, `Scheduler`, `ThreadScheduler`, `GeventScheduler`, `has_profiling_enabled`, `setup_profiler`, `teardown_profiler` are no longer accessible from `sentry_sdk.profiler`. They're still accessible from `sentry_sdk.profiler.transaction_profiler`.
21
+
-`DEFAULT_SAMPLING_FREQUENCY`, `MAX_STACK_DEPTH`, `get_frame_name`, `extract_frame`, `extract_stack`, `frame_id` are no longer accessible from `sentry_sdk.profiler`. They're still accessible from `sentry_sdk.profiler.utils`.
20
22
-`sentry_sdk.continue_trace` no longer returns a `Transaction` and is now a context manager.
21
23
- 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", ...]`).
22
24
- clickhouse-driver integration: The query is now available under the `db.query.text` span attribute (only if `send_default_pii` is `True`).
@@ -130,6 +132,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
130
132
131
133
- Spans no longer have a `description`. Use `name` instead.
132
134
- Dropped support for Python 3.6.
135
+
- The `enable_tracing``init` option has been removed. Configure `traces_sample_rate` directly.
133
136
- The `custom_sampling_context` parameter of `start_transaction` has been removed. Use `attributes` instead to set key-value pairs of data that should be accessible in the traces sampler. Note that span attributes need to conform to the [OpenTelemetry specification](https://opentelemetry.io/docs/concepts/signals/traces/#attributes), meaning only certain types can be set as values.
134
137
- The PyMongo integration no longer sets tags. The data is still accessible via span attributes.
135
138
- 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.
@@ -141,13 +144,17 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
141
144
- The context manager `auto_session_tracking()` has been removed. Use `track_session()` instead.
142
145
- The context manager `auto_session_tracking_scope()` has been removed. Use `track_session()` instead.
143
146
- Utility function `is_auto_session_tracking_enabled()` has been removed. There is no public replacement. There is a private `_is_auto_session_tracking_enabled()` (if you absolutely need this function) It accepts a `scope` parameter instead of the previously used `hub` parameter.
144
-
- Utility function `is_auto_session_tracking_enabled_scope()` has been removed. There is no public replacement. There is a private `_is_auto_session_tracking_enabled()` (if you absolutely need this function)
147
+
- Utility function `is_auto_session_tracking_enabled_scope()` has been removed. There is no public replacement. There is a private `_is_auto_session_tracking_enabled()` (if you absolutely need this function).
145
148
- Setting `scope.level` has been removed. Use `scope.set_level` instead.
146
149
-`span.containing_transaction` has been removed. Use `span.root_span` instead.
147
150
-`continue_from_headers`, `continue_from_environ` and `from_traceparent` have been removed, please use top-level API `sentry_sdk.continue_trace` instead.
148
151
-`PropagationContext` constructor no longer takes a `dynamic_sampling_context` but takes a `baggage` object instead.
149
152
-`ThreadingIntegration` no longer takes the `propagate_hub` argument.
150
153
-`Baggage.populate_from_transaction` has been removed.
154
+
-`debug.configure_debug_hub` was removed.
155
+
-`profiles_sample_rate` and `profiler_mode` were removed from options available via `_experiments`. Use the top-level `profiles_sample_rate` and `profiler_mode` options instead.
156
+
-`Transport.capture_event` has been removed. Use `Transport.capture_envelope` instead.
157
+
- Function transports are no longer supported. Subclass the `Transport` instead.
0 commit comments