Skip to content

Commit 1e82809

Browse files
ref(init): Stop using Hub in init
Use `Scope` APIs only in implementation for `sentry_sdk.init`, rather than `Hub` APIs.
1 parent 7996dca commit 1e82809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/hub.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _init(*args, **kwargs):
9090
This takes the same arguments as the client constructor.
9191
"""
9292
client = Client(*args, **kwargs) # type: ignore
93-
Hub.current.bind_client(client)
93+
Scope.get_global_scope().set_client(client)
9494
_check_python_deprecations()
9595
rv = _InitGuard(client)
9696
return rv

0 commit comments

Comments
 (0)