Skip to content

Commit f0cf86c

Browse files
committed
fix tests
1 parent 1faa587 commit f0cf86c

File tree

2 files changed

+380
-46
lines changed

2 files changed

+380
-46
lines changed

packages/vue/src/router.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export function vueRouterInstrumentation(
6969
startTransaction({
7070
name: WINDOW.location.pathname,
7171
op: 'pageload',
72-
origin: 'auto.pageload.vue',
7372
attributes: {
7473
'routing.instrumentation': 'vue-router',
74+
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.pageload.vue',
7575
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
7676
},
7777
});
@@ -151,7 +151,10 @@ export function instrumentVueRouter(
151151
}
152152
// Set router attributes on the existing pageload transaction
153153
// This will the origin, and add params & query attributes
154-
pageloadTransaction.setAttributes(attributes);
154+
pageloadTransaction.setAttributes({
155+
...attributes,
156+
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.pageload.vue',
157+
});
155158
}
156159
}
157160

0 commit comments

Comments
 (0)