Skip to content

fix source and txn name

71a6728
Select commit
Loading
Failed to load commit list.
Open

feat(celery): Support span streaming #6074

fix source and txn name
71a6728
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden: find-bugs completed Apr 15, 2026 in 6m 5s

1 issue

find-bugs: Found 1 issue (1 high)

High

Missing parentheses: _is_segment method called as attribute, always evaluates to True - `sentry_sdk/scope.py:901`

At line 901, span._is_segment accesses the method object instead of calling it (should be span._is_segment()). Since method objects are always truthy, this condition will always evaluate to True for any StreamedSpan that isn't a NoOpStreamedSpan, completely bypassing the segment check. This will incorrectly set _transaction and _transaction_info for non-segment spans, leading to incorrect transaction linking for events.


Duration: 6m 1s · Tokens: 4.8M in / 35.5k out · Cost: $6.02 (+extraction: $0.00, +fix_gate: $0.00)

Annotations

Check failure on line 901 in sentry_sdk/scope.py

See this annotation in the file changed.

@sentry-warden sentry-warden / warden: find-bugs

Missing parentheses: _is_segment method called as attribute, always evaluates to True

At line 901, `span._is_segment` accesses the method object instead of calling it (should be `span._is_segment()`). Since method objects are always truthy, this condition will always evaluate to True for any StreamedSpan that isn't a NoOpStreamedSpan, completely bypassing the segment check. This will incorrectly set `_transaction` and `_transaction_info` for non-segment spans, leading to incorrect transaction linking for events.