File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
packages/nextjs/src/client Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ import { isRedirectNavigationError } from '../common/nextNavigationErrorUtils';
88import { browserTracingIntegration } from './browserTracingIntegration' ;
99import { nextjsClientStackFrameNormalizationIntegration } from './clientNormalizationIntegration' ;
1010import { INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME } from './routing/appRouterRoutingInstrumentation' ;
11+ import { removeIsrSsgTraceMetaTags } from './routing/isrRoutingTracing' ;
1112import { applyTunnelRouteOption } from './tunnelRoute' ;
1213
1314export * from '@sentry/react' ;
1415export * from '../common' ;
1516export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error' ;
1617export { browserTracingIntegration } from './browserTracingIntegration' ;
1718export { captureRouterTransitionStart } from './routing/appRouterRoutingInstrumentation' ;
18- import { removeIsrSsgTraceMetaTags } from './routing/isrRoutingTracing' ;
1919
2020let clientIsInitialized = false ;
2121
Original file line number Diff line number Diff line change 55 SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ,
66 SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
77} from '@sentry/core' ;
8+ import { GLOBAL_OBJ } from '@sentry/core' ;
89import { startBrowserTracingNavigationSpan , startBrowserTracingPageLoadSpan , WINDOW } from '@sentry/react' ;
910import { maybeParameterizeRoute } from './parameterization' ;
10- import { GLOBAL_OBJ } from '@sentry/core' ;
1111
1212export const INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME = 'incomplete-app-router-transaction' ;
1313
Original file line number Diff line number Diff line change 1+ import { WINDOW } from '@sentry/react' ;
12import type { RouteManifest } from '../../config/manifest/types' ;
23import { maybeParameterizeRoute } from './parameterization' ;
3- import { WINDOW } from '@sentry/react' ;
44
55const globalWithInjectedValues = WINDOW as typeof WINDOW & {
66 _sentryRouteManifest : string | RouteManifest ;
@@ -46,7 +46,7 @@ export function removeIsrSsgTraceMetaTags(): void {
4646 }
4747
4848 // Helper function to remove a meta tag
49- const removeMetaTag = ( metaName : string ) => {
49+ function removeMetaTag ( metaName : string ) : void {
5050 try {
5151 const meta = WINDOW . document . querySelector ( `meta[name="${ metaName } "]` ) ;
5252 if ( meta ) {
@@ -55,7 +55,7 @@ export function removeIsrSsgTraceMetaTags(): void {
5555 } catch {
5656 // ignore errors when removing the meta tag
5757 }
58- } ;
58+ }
5959
6060 // Remove the meta tags so browserTracingIntegration won't pick them up
6161 removeMetaTag ( 'sentry-trace' ) ;
You can’t perform that action at this time.
0 commit comments