feat(httpx): Migrate to span first #6084
+710
−139
Open
@sentry/warden / warden: find-bugs
completed
Apr 16, 2026 in 7m 40s
1 issue
find-bugs: Found 1 issue (1 low)
Low
Span streaming path doesn't capture HTTP reason phrase - `sentry_sdk/integrations/httpx.py:209-211`
In the async client's span streaming path, the reason attribute (HTTP reason phrase like 'OK', 'Not Found') is not being set on the segment attributes. The legacy path captures rv.reason_phrase via span.set_data("reason", rv.reason_phrase), but the span streaming path only sets SPANDATA.HTTP_STATUS_CODE. This creates an inconsistency where spans created via the new path have less information than the legacy path.
Duration: 7m 40s · Tokens: 5.0M in / 28.5k out · Cost: $7.96 (+extraction: $0.01)
Loading