@@ -2,7 +2,7 @@ import * as SentryBrowser from '@sentry/browser';
2
2
import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN , SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core' ;
3
3
import type { SpanAttributes , Transaction } from '@sentry/types' ;
4
4
5
- import type { Route } from '../src/router' ;
5
+ import type { Route } from '../src/router' ;
6
6
import { instrumentVueRouter , vueRouterInstrumentation } from '../src/router' ;
7
7
import * as vueTracing from '../src/tracing' ;
8
8
@@ -104,7 +104,6 @@ describe('vueRouterInstrumentation()', () => {
104
104
expect ( mockStartTransaction ) . toHaveBeenCalledWith ( {
105
105
name : transactionName ,
106
106
attributes : {
107
- 'routing.instrumentation' : 'vue-router' ,
108
107
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.navigation.vue' ,
109
108
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : transactionSource ,
110
109
...getAttributesForRoute ( to ) ,
@@ -146,7 +145,6 @@ describe('vueRouterInstrumentation()', () => {
146
145
expect ( customMockStartTxn ) . toHaveBeenCalledWith ( {
147
146
name : '/' ,
148
147
attributes : {
149
- 'routing.instrumentation' : 'vue-router' ,
150
148
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.pageload.vue' ,
151
149
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'url' ,
152
150
} ,
@@ -165,7 +163,6 @@ describe('vueRouterInstrumentation()', () => {
165
163
expect ( mockedTxn . setAttribute ) . toHaveBeenCalledWith ( SEMANTIC_ATTRIBUTE_SENTRY_SOURCE , transactionSource ) ;
166
164
expect ( mockedTxn . setAttributes ) . toHaveBeenCalledWith ( {
167
165
...getAttributesForRoute ( to ) ,
168
- 'routing.instrumentation' : 'vue-router' ,
169
166
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.pageload.vue' ,
170
167
} ) ;
171
168
@@ -191,7 +188,6 @@ describe('vueRouterInstrumentation()', () => {
191
188
expect ( mockStartTransaction ) . toHaveBeenLastCalledWith ( {
192
189
name : '/login' ,
193
190
attributes : {
194
- 'routing.instrumentation' : 'vue-router' ,
195
191
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'route' ,
196
192
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.navigation.vue' ,
197
193
...getAttributesForRoute ( to ) ,
@@ -218,7 +214,6 @@ describe('vueRouterInstrumentation()', () => {
218
214
expect ( mockStartTransaction ) . toHaveBeenLastCalledWith ( {
219
215
name : 'login-screen' ,
220
216
attributes : {
221
- 'routing.instrumentation' : 'vue-router' ,
222
217
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'custom' ,
223
218
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.navigation.vue' ,
224
219
...getAttributesForRoute ( to ) ,
@@ -256,7 +251,6 @@ describe('vueRouterInstrumentation()', () => {
256
251
expect ( customMockStartTxn ) . toHaveBeenCalledWith ( {
257
252
name : '/' ,
258
253
attributes : {
259
- 'routing.instrumentation' : 'vue-router' ,
260
254
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'url' ,
261
255
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.pageload.vue' ,
262
256
} ,
@@ -283,7 +277,6 @@ describe('vueRouterInstrumentation()', () => {
283
277
expect ( mockedTxn . updateName ) . not . toHaveBeenCalled ( ) ;
284
278
expect ( mockedTxn . setAttribute ) . not . toHaveBeenCalled ( ) ;
285
279
expect ( mockedTxn . setAttributes ) . toHaveBeenCalledWith ( {
286
- 'routing.instrumentation' : 'vue-router' ,
287
280
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.pageload.vue' ,
288
281
...getAttributesForRoute ( to ) ,
289
282
} ) ;
@@ -349,7 +342,6 @@ describe('vueRouterInstrumentation()', () => {
349
342
expect ( mockStartTransaction ) . toHaveBeenLastCalledWith ( {
350
343
name : '/login' ,
351
344
attributes : {
352
- 'routing.instrumentation' : 'vue-router' ,
353
345
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'route' ,
354
346
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.navigation.vue' ,
355
347
...getAttributesForRoute ( to ) ,
@@ -411,7 +403,6 @@ describe('instrumentVueRouter()', () => {
411
403
expect ( mockStartSpan ) . toHaveBeenCalledWith ( {
412
404
name : transactionName ,
413
405
attributes : {
414
- 'routing.instrumentation' : 'vue-router' ,
415
406
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.navigation.vue' ,
416
407
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : transactionSource ,
417
408
...getAttributesForRoute ( to ) ,
@@ -463,7 +454,6 @@ describe('instrumentVueRouter()', () => {
463
454
expect ( mockedTxn . updateName ) . toHaveBeenCalledWith ( transactionName ) ;
464
455
expect ( mockedTxn . setAttribute ) . toHaveBeenCalledWith ( SEMANTIC_ATTRIBUTE_SENTRY_SOURCE , transactionSource ) ;
465
456
expect ( mockedTxn . setAttributes ) . toHaveBeenCalledWith ( {
466
- 'routing.instrumentation' : 'vue-router' ,
467
457
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.pageload.vue' ,
468
458
...getAttributesForRoute ( to ) ,
469
459
} ) ;
@@ -491,7 +481,6 @@ describe('instrumentVueRouter()', () => {
491
481
expect ( mockStartSpan ) . toHaveBeenLastCalledWith ( {
492
482
name : '/login' ,
493
483
attributes : {
494
- 'routing.instrumentation' : 'vue-router' ,
495
484
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.navigation.vue' ,
496
485
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'route' ,
497
486
...getAttributesForRoute ( to ) ,
@@ -519,7 +508,6 @@ describe('instrumentVueRouter()', () => {
519
508
expect ( mockStartSpan ) . toHaveBeenLastCalledWith ( {
520
509
name : 'login-screen' ,
521
510
attributes : {
522
- 'routing.instrumentation' : 'vue-router' ,
523
511
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.navigation.vue' ,
524
512
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'custom' ,
525
513
...getAttributesForRoute ( to ) ,
@@ -576,7 +564,6 @@ describe('instrumentVueRouter()', () => {
576
564
expect ( mockedTxn . updateName ) . not . toHaveBeenCalled ( ) ;
577
565
expect ( mockedTxn . setAttribute ) . not . toHaveBeenCalled ( ) ;
578
566
expect ( mockedTxn . setAttributes ) . toHaveBeenCalledWith ( {
579
- 'routing.instrumentation' : 'vue-router' ,
580
567
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.pageload.vue' ,
581
568
...getAttributesForRoute ( to ) ,
582
569
} ) ;
@@ -662,7 +649,6 @@ describe('instrumentVueRouter()', () => {
662
649
expect ( mockStartSpan ) . toHaveBeenLastCalledWith ( {
663
650
name : '/login' ,
664
651
attributes : {
665
- 'routing.instrumentation' : 'vue-router' ,
666
652
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.navigation.vue' ,
667
653
[ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'route' ,
668
654
...getAttributesForRoute ( to ) ,
0 commit comments