feat(celery): Support span streaming #6074
Merged
@sentry/warden / warden: find-bugs
completed
Apr 15, 2026 in 5m 37s
1 issue
find-bugs: Found 1 issue (1 low)
Low
Missing empty name check creates behavioral inconsistency with Transaction handling - `sentry_sdk/scope.py:903`
The new StreamedSpan handling at line 903 unconditionally sets self._transaction = span.name without checking if the name is truthy. In contrast, the Transaction handling (line 891-892) only sets _transaction when transaction.name is truthy. If a StreamedSpan has an empty name, this would set _transaction = "", which would later populate the event transaction with an empty string (line 1654-1655), whereas with Transaction, the _transaction would remain unchanged.
Duration: 5m 34s · Tokens: 4.1M in / 37.4k out · Cost: $5.22 (+extraction: $0.00, +fix_gate: $0.00)
Loading