Skip to content

Commit 535213b

Browse files
committed
fix: op attr
1 parent d82b6b1 commit 535213b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
captureException,
66
debug,
77
flushIfServerless,
8+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
89
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
910
SPAN_STATUS_ERROR,
1011
startSpan,
@@ -193,12 +194,12 @@ function createBreadcrumb(query: string): void {
193194
*/
194195
function createStartSpanOptions(query: string, dialect: string): StartSpanOptions {
195196
return {
196-
op: 'db.query',
197197
name: query,
198198
attributes: {
199199
'db.system.name': dialect,
200200
'db.query.text': query,
201201
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: SENTRY_ORIGIN,
202+
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'db.query',
202203
},
203204
};
204205
}

0 commit comments

Comments
 (0)