Skip to content

Merge branch 'master' into ivana/span-first-10-random-improvements

8a31eeb
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

ref: Add warnings to span streaming APIs (10) #5613

Merge branch 'master' into ivana/span-first-10-random-improvements
8a31eeb
Select commit
Loading
Failed to load commit list.
GitHub Actions / warden completed Mar 10, 2026 in 2m 30s

1 issue

Low

Duplicate warning emitted when using span streaming decorator in non-streaming mode - `sentry_sdk/traces.py:146-151`

When create_streaming_span_decorator is used with span streaming disabled, the warning "Using span streaming API in non-span-streaming mode" is emitted twice: first in the decorator wrapper (tracing_utils.py lines 964-968 or 987-991), and again when start_streaming_span() is called (traces.py lines 146-151). Both functions check has_span_streaming_enabled() and emit the same warning. This leads to duplicate warnings being shown to users.

Also found at:

  • sentry_sdk/tracing_utils.py:963-968
4 skills analyzed
Skill Findings Duration Cost
code-review 0 1m 46s $0.58
find-bugs 1 2m 13s $1.86
skill-scanner 0 2m 28s $0.44
security-review 0 1m 29s $0.49

Duration: 7m 56s · Tokens: 1.8M in / 19.6k out · Cost: $3.37 (+extraction: $0.00, +merge: $0.00)