We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df92dda commit 69c084fCopy full SHA for 69c084f
sentry_sdk/hub.py
@@ -47,7 +47,7 @@ def init(*args, **kwargs):
47
"""
48
global _initial_client
49
client = Client(*args, **kwargs)
50
- Hub.main.bind_client(client)
+ Hub.current.bind_client(client)
51
rv = _InitGuard(client)
52
if client is not None:
53
_initial_client = weakref.ref(client)
@@ -317,3 +317,4 @@ def scope(self, callback=None):
317
318
319
GLOBAL_HUB = Hub()
320
+_local.set(GLOBAL_HUB)
0 commit comments