@@ -52,7 +52,7 @@ let _useLocation: UseLocation | undefined;
5252let _useMatches : UseMatches | undefined ;
5353
5454let _customStartTransaction : ( ( context : TransactionContext ) => Span | undefined ) | undefined ;
55- let _startTransactionOnLocationChange : boolean | undefined ;
55+ let _instrumentNavigation : boolean | undefined ;
5656
5757function getInitPathName ( ) : string | undefined {
5858 if ( WINDOW && WINDOW . location ) {
@@ -140,7 +140,7 @@ export function remixRouterInstrumentation(useEffect: UseEffect, useLocation: Us
140140 useEffect,
141141 useLocation,
142142 useMatches,
143- startTransactionOnLocationChange,
143+ instrumentNavigation : startTransactionOnLocationChange ,
144144 customStartTransaction,
145145 } ) ;
146146
@@ -212,7 +212,7 @@ export function withSentry<P extends Record<string, unknown>, R extends React.Co
212212 return ;
213213 }
214214
215- if ( _startTransactionOnLocationChange && matches && matches . length ) {
215+ if ( _instrumentNavigation && matches && matches . length ) {
216216 if ( activeRootSpan ) {
217217 activeRootSpan . end ( ) ;
218218 }
@@ -242,18 +242,18 @@ export function setGlobals({
242242 useEffect,
243243 useLocation,
244244 useMatches,
245- startTransactionOnLocationChange ,
245+ instrumentNavigation ,
246246 customStartTransaction,
247247} : {
248248 useEffect ?: UseEffect ;
249249 useLocation ?: UseLocation ;
250250 useMatches ?: UseMatches ;
251- startTransactionOnLocationChange ?: boolean ;
251+ instrumentNavigation ?: boolean ;
252252 customStartTransaction ?: ( context : TransactionContext ) => Span | undefined ;
253253} ) : void {
254254 _useEffect = useEffect ;
255255 _useLocation = useLocation ;
256256 _useMatches = useMatches ;
257- _startTransactionOnLocationChange = startTransactionOnLocationChange ;
257+ _instrumentNavigation = instrumentNavigation ;
258258 _customStartTransaction = customStartTransaction ;
259259}
0 commit comments