@@ -48,6 +48,7 @@ describe('Angular Tracing', () => {
48
48
expect ( startTransaction ) . toHaveBeenCalledWith ( {
49
49
name : '/' ,
50
50
op : 'pageload' ,
51
+ origin : 'auto.pageload.angular' ,
51
52
metadata : { source : 'url' } ,
52
53
} ) ;
53
54
} ) ;
@@ -137,6 +138,7 @@ describe('Angular Tracing', () => {
137
138
expect ( customStartTransaction ) . toHaveBeenCalledWith ( {
138
139
name : url ,
139
140
op : 'pageload' ,
141
+ origin : 'auto.pageload.angular' ,
140
142
metadata : { source : 'url' } ,
141
143
} ) ;
142
144
@@ -327,6 +329,7 @@ describe('Angular Tracing', () => {
327
329
expect ( customStartTransaction ) . toHaveBeenCalledWith ( {
328
330
name : url ,
329
331
op : 'navigation' ,
332
+ origin : 'auto.navigation.angular' ,
330
333
metadata : { source : 'url' } ,
331
334
} ) ;
332
335
expect ( transaction . setName ) . toHaveBeenCalledWith ( result , 'route' ) ;
@@ -358,6 +361,7 @@ describe('Angular Tracing', () => {
358
361
359
362
expect ( transaction . startChild ) . toHaveBeenCalledWith ( {
360
363
op : 'ui.angular.init' ,
364
+ origin : 'auto.ui.angular.trace_directive' ,
361
365
description : '<unknown>' ,
362
366
} ) ;
363
367
@@ -384,6 +388,7 @@ describe('Angular Tracing', () => {
384
388
385
389
expect ( transaction . startChild ) . toHaveBeenCalledWith ( {
386
390
op : 'ui.angular.init' ,
391
+ origin : 'auto.ui.angular.trace_directive' ,
387
392
description : '<test-component>' ,
388
393
} ) ;
389
394
@@ -458,6 +463,7 @@ describe('Angular Tracing', () => {
458
463
expect ( transaction . startChild ) . toHaveBeenCalledWith ( {
459
464
description : '<DecoratedComponent>' ,
460
465
op : 'ui.angular.init' ,
466
+ origin : 'auto.ui.angular.trace_class_decorator' ,
461
467
} ) ;
462
468
463
469
expect ( origNgOnInitMock ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -511,13 +517,15 @@ describe('Angular Tracing', () => {
511
517
expect ( transaction . startChild . mock . calls [ 0 ] [ 0 ] ) . toEqual ( {
512
518
description : '<DecoratedComponent>' ,
513
519
op : 'ui.angular.ngOnInit' ,
520
+ origin : 'auto.ui.angular.trace_method_decorator' ,
514
521
startTimestamp : expect . any ( Number ) ,
515
522
endTimestamp : expect . any ( Number ) ,
516
523
} ) ;
517
524
518
525
expect ( transaction . startChild . mock . calls [ 1 ] [ 0 ] ) . toEqual ( {
519
526
description : '<DecoratedComponent>' ,
520
527
op : 'ui.angular.ngAfterViewInit' ,
528
+ origin : 'auto.ui.angular.trace_method_decorator' ,
521
529
startTimestamp : expect . any ( Number ) ,
522
530
endTimestamp : expect . any ( Number ) ,
523
531
} ) ;
0 commit comments