@@ -13,7 +13,7 @@ import {
13
13
startBrowserTracingPageLoadSpan ,
14
14
withErrorBoundary ,
15
15
} from '@sentry/react' ;
16
- import type { Span , StartSpanOptions , Transaction , TransactionContext } from '@sentry/types' ;
16
+ import type { Span , StartSpanOptions , TransactionContext } from '@sentry/types' ;
17
17
import { isNodeEnv , logger } from '@sentry/utils' ;
18
18
import * as React from 'react' ;
19
19
@@ -121,34 +121,6 @@ function startNavigationSpan(matches: RouteMatch<string>[]): void {
121
121
}
122
122
}
123
123
124
- /**
125
- * @deprecated Use `browserTracingIntegration` instead.
126
- *
127
- * Creates a react-router v6 instrumention for Remix applications.
128
- *
129
- * This implementation is slightly different (and simpler) from the react-router instrumentation
130
- * as in Remix, `useMatches` hook is available where in react-router-v6 it's not yet.
131
- */
132
- export function remixRouterInstrumentation ( useEffect : UseEffect , useLocation : UseLocation , useMatches : UseMatches ) {
133
- return (
134
- customStartTransaction : ( context : TransactionContext ) => Transaction | undefined ,
135
- startTransactionOnPageLoad = true ,
136
- startTransactionOnLocationChange = true ,
137
- ) : void => {
138
- setGlobals ( {
139
- useEffect,
140
- useLocation,
141
- useMatches,
142
- instrumentNavigation : startTransactionOnLocationChange ,
143
- customStartTransaction,
144
- } ) ;
145
-
146
- if ( startTransactionOnPageLoad ) {
147
- startPageloadSpan ( ) ;
148
- }
149
- } ;
150
- }
151
-
152
124
/**
153
125
* Wraps a remix `root` (see: https://remix.run/docs/en/v1/guides/migrating-react-router-app#creating-the-root-route)
154
126
* To enable pageload/navigation tracing on every route.
0 commit comments