fix(asyncpg): Add db.query.text to streamed query spans#6633
Merged
@sentry/warden / warden: find-bugs
completed
Jun 23, 2026
1 issue
find-bugs: Found 1 issue (1 low)
Low
`_assert_query_source` only validates `fetchrow_span_2`, silently skipping `fetchrow_span_1` - `tests/integrations/asyncpg/test_asyncpg.py:1577-1581`
_assert_query_source is called once outside the if/else block using the last loop variable span (always fetchrow_span_2); fetchrow_span_1 is never verified to have query source attributes, so a bug where the first fetch span lacks code-location data would go undetected.
⏱ 5m 59s · 631.5k in / 34.2k out · $1.03
Loading