Skip to content

Commit 411826f

Browse files
Ahmed-Labsmjq
andauthored
feat(spanv2): Add db attribute normalization (#5399)
Co-authored-by: Matt Quinn <matt.quinn@sentry.io>
1 parent 58f9eb5 commit 411826f

File tree

10 files changed

+606
-48
lines changed

10 files changed

+606
-48
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Add `http.request.header.cookie` to fields scrubbed by cookie rules. ([#5408](https://github.com/getsentry/relay/pull/5408))
1717
- Map `request_id` to `trace_id` in vercel log drain transform. ([#5333](https://github.com/getsentry/relay/pull/5333))
1818
- Populate `sentry.platform` during OTLP ingestion. ([#5411](https://github.com/getsentry/relay/pull/5411))
19+
- Add db attribute normalization to V2 spans. ([#5399](https://github.com/getsentry/relay/pull/5399))
1920

2021
**Internal**:
2122

relay-conventions/src/consts.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ convention_attributes!(
2020
DB_QUERY_TEXT => "db.query.text",
2121
DB_STATEMENT => "db.statement",
2222
DB_SYSTEM_NAME => "db.system.name",
23+
DB_OPERATION_NAME => "db.operation.name",
24+
DB_COLLECTION_NAME => "db.collection.name",
2325
DESCRIPTION => "sentry.description",
2426
DSC_ENVIRONMENT => "sentry.dsc.environment",
2527
DSC_PUBLIC_KEY => "sentry.dsc.public_key",
@@ -51,6 +53,7 @@ convention_attributes!(
5153
HTTP_TARGET => "http.target",
5254
IS_REMOTE => "sentry.is_remote",
5355
MESSAGING_SYSTEM => "messaging.system",
56+
NORMALIZED_DB_QUERY => "sentry.normalized_db_query",
5457
OBSERVED_TIMESTAMP_NANOS => "sentry.observed_timestamp_nanos",
5558
OP => "sentry.op",
5659
ORIGIN => "sentry.origin",

0 commit comments

Comments
 (0)