Repository navigation
feat(server-utils): Record returned rows on more database spans - #26994
Draft
sentry-junior[bot] wants to merge 2 commits into
Draft
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
Contributor
size-limit report 📦Compared: 137c0bc (PR test merge using develop at bd4c7df) Against: bd4c7df (develop) · base run #68361 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
|
One or more gzipped bundles increased by more than 500 bytes. If this increase is intentional, add the Accept Bundlesize Increase label to this PR to rerun and accept the check. |
Contributor
Optional E2E testsAll optional checks were successful. 65 successful. See the run. Successful checks
|
Extend `db.response.returned_rows` from pg and Neon to mysql, mysql2, postgres.js, tedious, knex, Cloudflare D1, Nuxt's db0 and Supabase. Co-Authored-By: Lukas Stracke <lukas.stracke@sentry.io>
sentry-junior
Bot
force-pushed
the
feat/db-returned-rows
branch
from
November 30, 2026 13:45
8d9c0c4 to
586d75d
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #26666.
What
Database spans from mysql, mysql2, postgres.js, tedious, knex, Cloudflare D1, Nuxt's db0 and Supabase now set
db.response.returned_rows, like the pg and Neon spans.Why
The rule is to set the attribute only where the instrumentation can see a reliable count.
count, tediousrowCount) do what pg does: a write reports the rows it affected.select/pluck. Supabase sets it only whendatais an array.first()/exec(), db0get()/run()and Supabasesingle().Open question: is "affected rows" for writes OK on postgres.js and tedious, given that mysql writes report 0? This matches pg's
rowCount, and SQL Server doesn't tell the two apart.via Lukas Stracke.
--
View Session [Sentry]