diff --git a/sentry_sdk/tracing_utils.py b/sentry_sdk/tracing_utils.py index a3a03e65c1..ba20dc8436 100644 --- a/sentry_sdk/tracing_utils.py +++ b/sentry_sdk/tracing_utils.py @@ -492,9 +492,9 @@ def from_options(cls, scope): third_party_items = "" mutable = False - client = sentry_sdk.Hub.current.client + client = sentry_sdk.get_client() - if client is None or scope._propagation_context is None: + if not client.is_active() or scope._propagation_context is None: return Baggage(sentry_items) options = client.options