Skip to content

Commit afa88eb

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 1c86489 commit afa88eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/hub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _init(*args, **kwargs):
100100
This takes the same arguments as the client constructor.
101101
"""
102102
client = Client(*args, **kwargs) # type: ignore
103-
Hub.current.bind_client(client)
103+
Scope.get_global_scope().set_client(client)
104104
_check_python_deprecations()
105105
rv = _InitGuard(client)
106106
return rv

0 commit comments

Comments
 (0)