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
Our migration guide provides instructions for how to replace manual hub clones with the new isolation_scope context manager. However, we do not provide any instructions for how to replace any more general with hub context manager.
Since sentry_sdk.Scope is no longer a context manager, with hub cannot be replaced simply with with isolation_scope. Instead, users now need to use use_isolation_scope, e.g. like so:
withuse_isolation_scope(my_isolation_scope):
...
We should mention use_isolation_scope in the migration guide.
The text was updated successfully, but these errors were encountered:
Add documentation to inform users that custom `Hub` usage (i.e. `with my_hub` statements) should be replaced with the `sentry_sdk.use_isolation_scope` context manager.
Resolves#10499
Add documentation to inform users that custom `Hub` usage (i.e. `with my_hub` statements) should be replaced with the `sentry_sdk.use_isolation_scope` context manager.
Resolves#10499
Add documentation to inform users that custom `Hub` usage (i.e. `with my_hub` statements) should be replaced with the `sentry_sdk.use_isolation_scope` context manager.
Resolves#10499
Our migration guide provides instructions for how to replace manual hub clones with the new
isolation_scope
context manager. However, we do not provide any instructions for how to replace any more generalwith hub
context manager.Since
sentry_sdk.Scope
is no longer a context manager,with hub
cannot be replaced simply withwith isolation_scope
. Instead, users now need to useuse_isolation_scope
, e.g. like so:We should mention
use_isolation_scope
in the migration guide.The text was updated successfully, but these errors were encountered: