Skip to content

Commit 9d97d93

Browse files
ref: Stop using Hub in tracing_utils (#3269)
Get the client via `sentry_sdk.get_client()` instead. Prerequisite for #3265
1 parent 2cb2dca commit 9d97d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/tracing_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ def from_options(cls, scope):
492492
third_party_items = ""
493493
mutable = False
494494

495-
client = sentry_sdk.Hub.current.client
495+
client = sentry_sdk.get_client()
496496

497-
if client is None or scope._propagation_context is None:
497+
if not client.is_active() or scope._propagation_context is None:
498498
return Baggage(sentry_items)
499499

500500
options = client.options

0 commit comments

Comments
 (0)