ref: Add warnings to span streaming APIs (10) #5613
Merged
GitHub Actions / warden: find-bugs
completed
Mar 10, 2026 in 2m 16s
1 issue
find-bugs: Found 1 issue (1 low)
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
Duration: 2m 13s · Tokens: 891.2k in / 8.0k out · Cost: $1.86 (+extraction: $0.00, +merge: $0.00)
Loading