Skip to content

Commit 96110f7

Browse files
committed
migration guide
1 parent 2422b21 commit 96110f7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

MIGRATION_GUIDE.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
1717
- `Span.finish()` no longer returns the `event_id` if the event is sent to sentry.
1818
- The `Profile()` constructor does not accept a `hub` parameter anymore.
1919
- 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`.
2022
- `sentry_sdk.continue_trace` no longer returns a `Transaction` and is now a context manager.
2123
- 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", ...]`).
2224
- 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
130132

131133
- Spans no longer have a `description`. Use `name` instead.
132134
- Dropped support for Python 3.6.
135+
- The `enable_tracing` `init` option has been removed. Configure `traces_sample_rate` directly.
133136
- 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.
134137
- The PyMongo integration no longer sets tags. The data is still accessible via span attributes.
135138
- 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
141144
- The context manager `auto_session_tracking()` has been removed. Use `track_session()` instead.
142145
- The context manager `auto_session_tracking_scope()` has been removed. Use `track_session()` instead.
143146
- 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).
145148
- Setting `scope.level` has been removed. Use `scope.set_level` instead.
146149
- `span.containing_transaction` has been removed. Use `span.root_span` instead.
147150
- `continue_from_headers`, `continue_from_environ` and `from_traceparent` have been removed, please use top-level API `sentry_sdk.continue_trace` instead.
148151
- `PropagationContext` constructor no longer takes a `dynamic_sampling_context` but takes a `baggage` object instead.
149152
- `ThreadingIntegration` no longer takes the `propagate_hub` argument.
150153
- `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.
151158

152159
### Deprecated
153160

0 commit comments

Comments
 (0)