We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
api/
1 parent 11a7a26 commit 1381a75Copy full SHA for 1381a75
packages/nextjs/src/index.client.ts
@@ -1,5 +1,5 @@
1
import { configureScope, init as reactInit } from '@sentry/react';
2
-import { Integrations } from '@sentry/tracing';
+import { defaultRequestInstrumentationOptions, Integrations } from '@sentry/tracing';
3
4
import { nextRouterInstrumentation } from './performance/client';
5
import { MetadataBuilder } from './utils/metadataBuilder';
@@ -33,6 +33,7 @@ export function init(options: NextjsOptions): void {
33
}
34
35
const defaultBrowserTracingIntegration = new BrowserTracing({
36
+ tracingOrigins: [...defaultRequestInstrumentationOptions.tracingOrigins, /^(api\/)/],
37
routingInstrumentation: nextRouterInstrumentation,
38
});
39
0 commit comments