Skip to content

add missing attr

ae964eb
Select commit
Loading
Failed to load commit list.
Open

feat(celery): Support span streaming #6074

add missing attr
ae964eb
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden completed Apr 15, 2026 in 7m 11s

1 issue

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.

4 skills analyzed
Skill Findings Duration Cost
code-review 0 7m 9s $3.34
find-bugs 1 5m 34s $5.21
skill-scanner 0 5m 17s $0.99
security-review 0 6m 44s $1.25

Duration: 24m 44s · Tokens: 7.7M in / 77.1k out · Cost: $10.80 (+extraction: $0.00, +fix_gate: $0.00)