Skip to content

Commit d977f35

Browse files
authored
ref(nextjs): Export BrowserTracing integration directly from @sentry/nextjs (getsentry#3647)
Mostly to make linters happy.
1 parent 4917804 commit d977f35

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/nextjs/src/index.client.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { configureScope, init as reactInit } from '@sentry/react';
2-
import { defaultRequestInstrumentationOptions, Integrations } from '@sentry/tracing';
1+
import { configureScope, init as reactInit, Integrations as BrowserIntegrations } from '@sentry/react';
2+
import { defaultRequestInstrumentationOptions, Integrations as TracingIntegrations } from '@sentry/tracing';
33

44
import { nextRouterInstrumentation } from './performance/client';
55
import { MetadataBuilder } from './utils/metadataBuilder';
@@ -9,7 +9,8 @@ import { addIntegration, UserIntegrations } from './utils/userIntegrations';
99
export * from '@sentry/react';
1010
export { nextRouterInstrumentation } from './performance/client';
1111

12-
const { BrowserTracing } = Integrations;
12+
const { BrowserTracing } = TracingIntegrations;
13+
export const Integrations = { ...BrowserIntegrations, BrowserTracing };
1314

1415
/** Inits the Sentry NextJS SDK on the browser with the React SDK. */
1516
export function init(options: NextjsOptions): void {

0 commit comments

Comments
 (0)