From 7544af4ca5ff3c8efebf829579b6ca3cc2f711d7 Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Wed, 2 Sep 2026 16:57:28 +0200 Subject: [PATCH] docs: Use `db.query.text` in the v11 `beforeSendSpan` example The "after" snippet still scrubbed `db.statement`, which v11 renamed to `db.query.text`. Copying the example would silently scrub nothing. Co-authored-by: Claude Opus 5 (1M context) --- MIGRATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MIGRATION.md b/MIGRATION.md index 279b25b001e7..b292e2659f7d 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -388,7 +388,7 @@ Sentry.init({ beforeSendSpan: span => { if (span.attributes['sentry.op'] === 'db.query') { span.name = scrub(span.name); - span.attributes['db.statement'] = scrub(span.attributes['db.statement']); + span.attributes['db.query.text'] = scrub(span.attributes['db.query.text']); } return span; },