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
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
10
10
11
11
- The SDK now supports Python 3.7 and higher.
12
12
-`sentry_sdk.start_span` now only takes keyword arguments.
13
-
-`sentry_sdk.start_span` no longer takes an explicit `span` argument.
14
-
-`sentry_sdk.start_span` no longer takes explicit `trace_id`, `span_id` or `parent_span_id` arguments.
13
+
-`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`.
15
14
- The `Span()` constructor does not accept a `hub` parameter anymore.
16
15
-`Span.finish()` does not accept a `hub` parameter anymore.
17
16
- The `Profile()` constructor does not accept a `hub` parameter anymore.
@@ -21,6 +20,18 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
21
20
- clickhouse-driver integration: The query is now available under the `db.query.text` span attribute (only if `send_default_pii` is `True`).
22
21
-`sentry_sdk.init` now returns `None` instead of a context manager.
23
22
- The `sampling_context` argument of `traces_sampler` now additionally contains all span attributes known at span start.
23
+
- The `sampling_context` argument of `traces_sampler` doesn't contain the `asgi_scope` object anymore for ASGI frameworks. Instead, the individual properties on the scope, if available, are accessible as follows:
0 commit comments