Skip to content

Commit

Permalink
ref(init): Stop using Hub in init
Browse files Browse the repository at this point in the history
Use `Scope` APIs only in implementation for `sentry_sdk.init`, rather than `Hub` APIs.
  • Loading branch information
szokeasaurusrex committed Jul 11, 2024
1 parent 7996dca commit 1e82809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_sdk/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _init(*args, **kwargs):
This takes the same arguments as the client constructor.
"""
client = Client(*args, **kwargs) # type: ignore
Hub.current.bind_client(client)
Scope.get_global_scope().set_client(client)
_check_python_deprecations()
rv = _InitGuard(client)
return rv
Expand Down

0 comments on commit 1e82809

Please sign in to comment.