ref: Add warnings to span streaming APIs (10) #5613
Merged
GitHub Actions / warden: code-review
completed
Mar 9, 2026 in 2m 53s
1 issue
code-review: Found 1 issue (1 low)
Low
Duplicate warnings emitted when span streaming is not enabled - `sentry_sdk/tracing_utils.py:963-968`
The decorator's async_wrapper and sync_wrapper emit a warning when span streaming is not enabled, then call start_streaming_span (aliased from traces.start_span), which also emits its own warning with a different message and returns a NoOpStreamedSpan. This results in two separate warnings being shown to users each time the decorated function is called without span streaming enabled.
Duration: 2m 53s · Tokens: 609.4k in / 7.2k out · Cost: $0.74
Loading