Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Feb 2, 2024
1 parent 1faa587 commit f0cf86c
Show file tree
Hide file tree
Showing 2 changed files with 380 additions and 46 deletions.
7 changes: 5 additions & 2 deletions packages/vue/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ export function vueRouterInstrumentation(
startTransaction({
name: WINDOW.location.pathname,
op: 'pageload',
origin: 'auto.pageload.vue',
attributes: {
'routing.instrumentation': 'vue-router',
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.pageload.vue',
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
},
});
Expand Down Expand Up @@ -151,7 +151,10 @@ export function instrumentVueRouter(
}
// Set router attributes on the existing pageload transaction
// This will the origin, and add params & query attributes
pageloadTransaction.setAttributes(attributes);
pageloadTransaction.setAttributes({
...attributes,
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.pageload.vue',
});
}
}

Expand Down
Loading

0 comments on commit f0cf86c

Please sign in to comment.