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 ccb311f commit 523ff93Copy full SHA for 523ff93
sentry_sdk/integrations/executing.py
@@ -1,4 +1,4 @@
1
-from sentry_sdk import Hub
+import sentry_sdk
2
from sentry_sdk._types import TYPE_CHECKING
3
from sentry_sdk.integrations import Integration, DidNotEnable
4
from sentry_sdk.scope import add_global_event_processor
@@ -25,7 +25,7 @@ def setup_once():
25
@add_global_event_processor
26
def add_executing_info(event, hint):
27
# type: (Event, Optional[Hint]) -> Optional[Event]
28
- if Hub.current.get_integration(ExecutingIntegration) is None:
+ if sentry_sdk.get_client().get_integration(ExecutingIntegration) is None:
29
return event
30
31
if hint is None:
0 commit comments