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
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,35 @@ Looking to upgrade from Sentry SDK 1.x to 2.x? Here's a comprehensive list of wh
8
8
9
9
## Changed
10
10
11
-
- Setting the parameter `propagate_hub` to `True` in `ThreadingIntegration(propagate_hub=True)` only works on Python 3.7+.
12
11
- The Pyramid integration will not capture errors that might happen in `authenticated_userid()` in a custom `AuthenticationPolicy` class.
13
12
- The method `need_code_loation` of the `MetricsAggregator` was renamed to `need_code_location`.
14
13
- The `BackgroundWorker` thread used to process events was renamed from `raven-sentry.BackgroundWorker` to `sentry-sdk.BackgroundWorker`.
15
14
- The `reraise` function was moved from `sentry_sdk._compat` to `sentry_sdk.utils`.
15
+
- The `_ScopeManager` was moved from `sentry_sdk.hub` to `sentry_sdk.scope`.
16
16
- Moved the contents of `tracing_utils_py3.py` to `tracing_utils.py`. The `start_child_span_decorator` is now in `sentry_sdk.tracing_utils`.
17
17
- The actual implementation of `get_current_span` was moved to `sentry_sdk.tracing_utils`. `sentry_sdk.get_current_span` is still accessible as part of the top-level API.
18
+
-`sentry_sdk.tracing_utils.get_current_span()` does now take a `scope` instead of a `hub` as parameter.
19
+
-`sentry_sdk.utils._get_contextvars` does not return a tuple with three values, but a tuple with two values. The `copy_context` was removed.
20
+
- If you create a transaction manually and later mutate the transaction in a `configure_scope` block this does not work anymore. Here is a recipe on how to change your code to make it work:
@@ -46,3 +68,4 @@ Looking to upgrade from Sentry SDK 1.x to 2.x? Here's a comprehensive list of wh
46
68
```
47
69
- Deprecated `sentry_sdk.transport.Transport.capture_event`. Please use `sentry_sdk.transport.Transport.capture_envelope`, instead.
48
70
- Passing a function to `sentry_sdk.init`'s `transport` keyword argument has been deprecated. If you wish to provide a custom transport, please pass a `sentry_sdk.transport.Transport` instance or a subclass.
71
+
- The parameter `propagate_hub`in`ThreadingIntegration()` was deprecated and renamed to `propagate_scope`.
0 commit comments