File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ function reactRouterInstrumentation(
64
64
allRoutes : RouteConfig [ ] = [ ] ,
65
65
matchPath ?: MatchPath ,
66
66
) : ReactRouterInstrumentation {
67
- function getName ( pathname : string ) : string {
67
+ function getTransactionName ( pathname : string ) : string {
68
68
if ( allRoutes === [ ] || ! matchPath ) {
69
69
return pathname ;
70
70
}
@@ -83,7 +83,7 @@ function reactRouterInstrumentation(
83
83
return ( customStartTransaction , startTransactionOnPageLoad = true , startTransactionOnLocationChange = true ) : void => {
84
84
if ( startTransactionOnPageLoad && global && global . location ) {
85
85
activeTransaction = customStartTransaction ( {
86
- name : getName ( global . location . pathname ) ,
86
+ name : getTransactionName ( global . location . pathname ) ,
87
87
op : 'pageload' ,
88
88
tags : {
89
89
'routing.instrumentation' : name ,
@@ -102,7 +102,7 @@ function reactRouterInstrumentation(
102
102
} ;
103
103
104
104
activeTransaction = customStartTransaction ( {
105
- name : getName ( location . pathname ) ,
105
+ name : getTransactionName ( location . pathname ) ,
106
106
op : 'navigation' ,
107
107
tags,
108
108
} ) ;
You can’t perform that action at this time.
0 commit comments