Skip to content

Commit bcebbf2

Browse files
committed
Reintroduce the stricter check for a streamed span so that we do not accidentally try to access a segment on a noop streamed span
1 parent ec14f15 commit bcebbf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/integrations/strawberry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def on_operation(self) -> "Generator[None, None, None]":
225225

226226
yield
227227

228-
if isinstance(graphql_span, StreamedSpan):
228+
if type(graphql_span) is StreamedSpan:
229229
if execution_context.operation_name:
230230
segment = graphql_span._segment
231231
segment.set_attribute("sentry.span.source", TransactionSource.COMPONENT)

0 commit comments

Comments
 (0)