fix(asyncpg): Add db.query.text to streamed query spans#6633
Conversation
Fixes PY-2544 Fixes #6632
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 39b7f96. Configure here.
| span, | ||
| span_streaming, | ||
| "test_cursor_fetch_methods_create_spans", | ||
| ) |
There was a problem hiding this comment.
Query source checked once only
Low Severity
Refactoring test_cursor_fetch_methods_create_spans moved _assert_query_source out of the loop over both fetch-row spans, so it runs once on the last span only. The prior version asserted query-source metadata on each of the two fetchrow spans; regressions on the first span would no longer fail the test.
Reviewed by Cursor Bugbot for commit 39b7f96. Configure here.
Codecov Results 📊✅ 91401 passed | ⏭️ 6136 skipped | Total: 97537 | Pass Rate: 93.71% | Execution Time: 327m 45s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2407 uncovered lines. Files with missing lines (1)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.86% 89.87% +0.01%
==========================================
Files 192 192 —
Lines 23758 23763 +5
Branches 8204 8206 +2
==========================================
+ Hits 21349 21356 +7
- Misses 2409 2407 -2
- Partials 1344 1343 -1Generated by Codecov Action |


Fixes PY-2546
Fixes #6632