Skip to content

feat: Support span first in Graphene

d7f7934
Select commit
Loading
Failed to load commit list.
Draft

feat: Support span first in Graphene #5708

feat: Support span first in Graphene
d7f7934
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden completed Mar 19, 2026 in 1m 38s

1 issue

Medium

StreamedSpan exceptions not marked as errors due to bypassing __exit__ - `sentry_sdk/integrations/graphene.py:168-174`

When has_span_streaming_enabled is True, the span is created but never entered as a context manager (no __enter__ call), and ended directly via .end() instead of __exit__. This skips the exception handling logic in StreamedSpan.__exit__ that sets status = SpanStatus.ERROR when an exception occurs. If a GraphQL operation throws an exception, the streaming span will be marked as 'ok' instead of 'error', losing important error information.

4 skills analyzed
Skill Findings Duration Cost
code-review 1 1m 33s $0.53
find-bugs 0 1m 24s $0.51
skill-scanner 0 39.3s $0.14
security-review 0 41.1s $0.20

Duration: 4m 17s · Tokens: 547.3k in / 9.9k out · Cost: $1.38 (+extraction: $0.00, +fix_gate: $0.00)