Skip to content

Commit 4cf0de8

Browse files
committed
fix: use semantic span attributes for driver info
1 parent 937a209 commit 4cf0de8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nuxt/src/runtime/plugins/storage.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ function getSpanAttributes(methodName: string, driver: Driver, mountBase: string
199199
const attributes: SpanAttributes = {
200200
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: `cache.${normalizeMethodName(methodName)}`,
201201
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.cache.nuxt',
202-
'nuxt.storage.op': methodName,
203-
'nuxt.storage.mount': mountBase,
204-
'nuxt.storage.driver': driver.name ?? 'unknown',
202+
'db.operation.name': methodName,
203+
'db.collection.name ': mountBase,
204+
'db.system.name': driver.name ?? 'unknown',
205205
};
206206

207207
// Add the key if it's a get/set/del call

0 commit comments

Comments
 (0)