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
@@ -16,6 +16,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
16
16
-`sentry_sdk.start_transaction`/`sentry_sdk.start_span` no longer takes the following arguments: `span`, `parent_sampled`, `trace_id`, `span_id` or `parent_span_id`.
17
17
- You can no longer change the sampled status of a span with `span.sampled = False` after starting it.
18
18
- The `Span()` constructor does not accept a `hub` parameter anymore.
19
+
- The `sentry_sdk.Scope()` constructor no longer accepts a `client` parameter.
19
20
-`Span.finish()` does not accept a `hub` parameter anymore.
20
21
-`Span.finish()` no longer returns the `event_id` if the event is sent to sentry.
21
22
- Some integrations were creating spans with `op``db`. This was changed to `db.query`.
@@ -33,6 +34,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
33
34
- The `SentrySpanProcessor` and `SentryPropagator` are exported from `sentry_sdk.opentelemetry` instead of `sentry_sdk.integrations.opentelemetry`.
34
35
- PyMongo breadcrumb type was changed from `db` to `query`.
35
36
- The integration-specific content of the `sampling_context` argument of `traces_sampler` and `profiles_sampler` now looks different.
37
+
36
38
- The Celery integration doesn't add the `celery_job` dictionary anymore. Instead, the individual keys are now available as:
37
39
38
40
| Dictionary keys | Sampling context key | Example |
@@ -135,7 +137,6 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
@@ -170,7 +171,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
170
171
-`span_id`
171
172
-`parent_span_id`: you can supply a `parent_span` instead
172
173
- The `Scope.transaction` property has been removed. To obtain the root span (previously transaction), use `Scope.root_span`. To set the root span's (transaction's) name, use `Scope.set_transaction_name()`.
173
-
- The `Scope.span =` setter has been removed.
174
+
- The `Scope.span =` setter has been removed. Please use the new `span.activate()` api instead if you want to activate a new span manually instead of using the `start_span` context manager.
174
175
- Passing a list or `None` for `failed_request_status_codes` in the Starlette integration is no longer supported. Pass a set of integers instead.
175
176
- The `span` argument of `Scope.trace_propagation_meta` is no longer supported.
176
177
- Setting `Scope.user` directly is no longer supported. Use `Scope.set_user()` instead.
0 commit comments