@@ -48,6 +48,7 @@ describe('Angular Tracing', () => {
4848 expect ( startTransaction ) . toHaveBeenCalledWith ( {
4949 name : '/' ,
5050 op : 'pageload' ,
51+ origin : 'auto.pageload.angular' ,
5152 metadata : { source : 'url' } ,
5253 } ) ;
5354 } ) ;
@@ -137,6 +138,7 @@ describe('Angular Tracing', () => {
137138 expect ( customStartTransaction ) . toHaveBeenCalledWith ( {
138139 name : url ,
139140 op : 'pageload' ,
141+ origin : 'auto.pageload.angular' ,
140142 metadata : { source : 'url' } ,
141143 } ) ;
142144
@@ -327,6 +329,7 @@ describe('Angular Tracing', () => {
327329 expect ( customStartTransaction ) . toHaveBeenCalledWith ( {
328330 name : url ,
329331 op : 'navigation' ,
332+ origin : 'auto.navigation.angular' ,
330333 metadata : { source : 'url' } ,
331334 } ) ;
332335 expect ( transaction . setName ) . toHaveBeenCalledWith ( result , 'route' ) ;
@@ -358,6 +361,7 @@ describe('Angular Tracing', () => {
358361
359362 expect ( transaction . startChild ) . toHaveBeenCalledWith ( {
360363 op : 'ui.angular.init' ,
364+ origin : 'auto.ui.angular.trace_directive' ,
361365 description : '<unknown>' ,
362366 } ) ;
363367
@@ -384,6 +388,7 @@ describe('Angular Tracing', () => {
384388
385389 expect ( transaction . startChild ) . toHaveBeenCalledWith ( {
386390 op : 'ui.angular.init' ,
391+ origin : 'auto.ui.angular.trace_directive' ,
387392 description : '<test-component>' ,
388393 } ) ;
389394
@@ -458,6 +463,7 @@ describe('Angular Tracing', () => {
458463 expect ( transaction . startChild ) . toHaveBeenCalledWith ( {
459464 description : '<DecoratedComponent>' ,
460465 op : 'ui.angular.init' ,
466+ origin : 'auto.ui.angular.trace_class_decorator' ,
461467 } ) ;
462468
463469 expect ( origNgOnInitMock ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -511,13 +517,15 @@ describe('Angular Tracing', () => {
511517 expect ( transaction . startChild . mock . calls [ 0 ] [ 0 ] ) . toEqual ( {
512518 description : '<DecoratedComponent>' ,
513519 op : 'ui.angular.ngOnInit' ,
520+ origin : 'auto.ui.angular.trace_method_decorator' ,
514521 startTimestamp : expect . any ( Number ) ,
515522 endTimestamp : expect . any ( Number ) ,
516523 } ) ;
517524
518525 expect ( transaction . startChild . mock . calls [ 1 ] [ 0 ] ) . toEqual ( {
519526 description : '<DecoratedComponent>' ,
520527 op : 'ui.angular.ngAfterViewInit' ,
528+ origin : 'auto.ui.angular.trace_method_decorator' ,
521529 startTimestamp : expect . any ( Number ) ,
522530 endTimestamp : expect . any ( Number ) ,
523531 } ) ;
0 commit comments