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.
1 parent fccc0a5 commit 69fdff2Copy full SHA for 69fdff2
src/instrumentation-client.ts
@@ -27,13 +27,14 @@ Sentry.init({
27
filterKeys: ['sentry-docs'],
28
behaviour: 'apply-tag-if-contains-third-party-frames',
29
}),
30
- // Use the integration from the nextjs package to avoid type conflicts
31
- new Sentry.BrowserTracing({
32
- tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
33
- }),
+ // Use the correct integration function for v9.27.0
+ Sentry.browserTracingIntegration(),
34
],
35
});
36
+// Required for navigation instrumentation
+export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;
37
+
38
if (process.env.NODE_ENV === 'development') {
39
Spotlight.init({
40
showClearEventsButton: true,
0 commit comments