File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 55import sentry_sdk
66from sentry_sdk .integrations import DidNotEnable
77from sentry_sdk .scope import should_send_default_pii
8- from sentry_sdk .traces import StreamedSpan
8+ from sentry_sdk .traces import NoOpStreamedSpan , StreamedSpan
99from sentry_sdk .tracing import SOURCE_FOR_STYLE , TransactionSource
1010from sentry_sdk .utils import transaction_from_function
1111
@@ -83,7 +83,9 @@ def _sentry_call(*args: "Any", **kwargs: "Any") -> "Any":
8383 current_scope = sentry_sdk .get_current_scope ()
8484 current_span = current_scope .span
8585
86- if isinstance (current_span , StreamedSpan ):
86+ if isinstance (current_span , StreamedSpan ) and not isinstance (
87+ current_span , NoOpStreamedSpan
88+ ):
8789 segment = current_span ._segment
8890 segment ._update_active_thread ()
8991 elif current_scope .transaction is not None :
You can’t perform that action at this time.
0 commit comments