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
Remove the following deprecated stuff:
- `configure_debug_hub` from `debug.py`
- exported stuff in `profiler/__init__.py` that's not part of public API
and was only exported for backwards compat reasons
- support for `_experiments['profiler_mode']` and
`_experiments['profiles_sample_rate']` which both have non-experimental
top-level options now
- `Transport.capture_event`
- `_FunctionTransport` and support for function transports in general
- `enable_tracing`
---------
Co-authored-by: Anton Pirker <[email protected]>
Copy file name to clipboardexpand all lines: MIGRATION_GUIDE.md
+8-1
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`).
@@ -131,6 +133,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
131
133
132
134
- Spans no longer have a `description`. Use `name` instead.
133
135
- Dropped support for Python 3.6.
136
+
- The `enable_tracing``init` option has been removed. Configure `traces_sample_rate` directly.
134
137
- 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.
135
138
- The PyMongo integration no longer sets tags. The data is still accessible via span attributes.
136
139
- 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.
@@ -142,13 +145,17 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
142
145
- The context manager `auto_session_tracking()` has been removed. Use `track_session()` instead.
143
146
- The context manager `auto_session_tracking_scope()` has been removed. Use `track_session()` instead.
144
147
- 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.
145
-
- 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)
148
+
- 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).
146
149
- Setting `scope.level` has been removed. Use `scope.set_level` instead.
147
150
-`span.containing_transaction` has been removed. Use `span.root_span` instead.
148
151
-`continue_from_headers`, `continue_from_environ` and `from_traceparent` have been removed, please use top-level API `sentry_sdk.continue_trace` instead.
149
152
-`PropagationContext` constructor no longer takes a `dynamic_sampling_context` but takes a `baggage` object instead.
150
153
-`ThreadingIntegration` no longer takes the `propagate_hub` argument.
151
154
-`Baggage.populate_from_transaction` has been removed.
155
+
-`debug.configure_debug_hub` was removed.
156
+
-`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.
157
+
-`Transport.capture_event` has been removed. Use `Transport.capture_envelope` instead.
158
+
- Function transports are no longer supported. Subclass the `Transport` instead.
0 commit comments