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 10, 2024
1 parent 1c86489 commit afa88eb
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 @@ -100,7 +100,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 afa88eb

Please sign in to comment.