sentry-docs
sentry-docs copied to clipboard
Document scope forking in migration guide
Core or SDK?
Platform/SDK
Which part? Which one?
Python
Description
Our migration guide is missing instructions for how to migrate code like the following to our new scope API:
import sentry_sdk
cloned_hub = sentry_sdk.Hub(my_hub)
Suggested Solution
The code should be changed like so:
import sentry_sdk
forked_isolation_scope = my_isolation_scope.fork()