@@ -13,7 +13,7 @@ import {
1313 startBrowserTracingPageLoadSpan ,
1414 withErrorBoundary ,
1515} from '@sentry/react' ;
16- import type { Span , StartSpanOptions , Transaction , TransactionContext } from '@sentry/types' ;
16+ import type { Span , StartSpanOptions , TransactionContext } from '@sentry/types' ;
1717import { isNodeEnv , logger } from '@sentry/utils' ;
1818import * as React from 'react' ;
1919
@@ -121,34 +121,6 @@ function startNavigationSpan(matches: RouteMatch<string>[]): void {
121121 }
122122}
123123
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-
152124/**
153125 * Wraps a remix `root` (see: https://remix.run/docs/en/v1/guides/migrating-react-router-app#creating-the-root-route)
154126 * To enable pageload/navigation tracing on every route.
0 commit comments