Skip to content

Commit 69fdff2

Browse files
committed
Checkpoint before follow-up message
1 parent fccc0a5 commit 69fdff2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/instrumentation-client.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ Sentry.init({
2727
filterKeys: ['sentry-docs'],
2828
behaviour: 'apply-tag-if-contains-third-party-frames',
2929
}),
30-
// Use the integration from the nextjs package to avoid type conflicts
31-
new Sentry.BrowserTracing({
32-
tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
33-
}),
30+
// Use the correct integration function for v9.27.0
31+
Sentry.browserTracingIntegration(),
3432
],
3533
});
3634

35+
// Required for navigation instrumentation
36+
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;
37+
3738
if (process.env.NODE_ENV === 'development') {
3839
Spotlight.init({
3940
showClearEventsButton: true,

0 commit comments

Comments
 (0)