File tree Expand file tree Collapse file tree 2 files changed +380
-46
lines changed Expand file tree Collapse file tree 2 files changed +380
-46
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ export function vueRouterInstrumentation(
69
69
startTransaction ( {
70
70
name : WINDOW . location . pathname ,
71
71
op : 'pageload' ,
72
- origin : 'auto.pageload.vue' ,
73
72
attributes : {
74
73
'routing.instrumentation' : 'vue-router' ,
74
+ [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.pageload.vue' ,
75
75
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'url' ,
76
76
} ,
77
77
} ) ;
@@ -151,7 +151,10 @@ export function instrumentVueRouter(
151
151
}
152
152
// Set router attributes on the existing pageload transaction
153
153
// 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
+ } ) ;
155
158
}
156
159
}
157
160
You can’t perform that action at this time.
0 commit comments