@@ -52,7 +52,7 @@ let _useLocation: UseLocation | undefined;
52
52
let _useMatches : UseMatches | undefined ;
53
53
54
54
let _customStartTransaction : ( ( context : TransactionContext ) => Span | undefined ) | undefined ;
55
- let _startTransactionOnLocationChange : boolean | undefined ;
55
+ let _instrumentNavigation : boolean | undefined ;
56
56
57
57
function getInitPathName ( ) : string | undefined {
58
58
if ( WINDOW && WINDOW . location ) {
@@ -140,7 +140,7 @@ export function remixRouterInstrumentation(useEffect: UseEffect, useLocation: Us
140
140
useEffect,
141
141
useLocation,
142
142
useMatches,
143
- startTransactionOnLocationChange,
143
+ instrumentNavigation : startTransactionOnLocationChange ,
144
144
customStartTransaction,
145
145
} ) ;
146
146
@@ -212,7 +212,7 @@ export function withSentry<P extends Record<string, unknown>, R extends React.Co
212
212
return ;
213
213
}
214
214
215
- if ( _startTransactionOnLocationChange && matches && matches . length ) {
215
+ if ( _instrumentNavigation && matches && matches . length ) {
216
216
if ( activeRootSpan ) {
217
217
activeRootSpan . end ( ) ;
218
218
}
@@ -242,18 +242,18 @@ export function setGlobals({
242
242
useEffect,
243
243
useLocation,
244
244
useMatches,
245
- startTransactionOnLocationChange ,
245
+ instrumentNavigation ,
246
246
customStartTransaction,
247
247
} : {
248
248
useEffect ?: UseEffect ;
249
249
useLocation ?: UseLocation ;
250
250
useMatches ?: UseMatches ;
251
- startTransactionOnLocationChange ?: boolean ;
251
+ instrumentNavigation ?: boolean ;
252
252
customStartTransaction ?: ( context : TransactionContext ) => Span | undefined ;
253
253
} ) : void {
254
254
_useEffect = useEffect ;
255
255
_useLocation = useLocation ;
256
256
_useMatches = useMatches ;
257
- _startTransactionOnLocationChange = startTransactionOnLocationChange ;
257
+ _instrumentNavigation = instrumentNavigation ;
258
258
_customStartTransaction = customStartTransaction ;
259
259
}
0 commit comments