Skip to content

Commit 1283a79

Browse files
committed
fix: fix sentry warnings
1 parent ca710e5 commit 1283a79

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ Sentry.init({
3131
}),
3232
],
3333
});
34+
35+
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;

src/instrumentation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as Sentry from "@sentry/nextjs";
2+
13
export async function register() {
24
if (process.env.NEXT_RUNTIME === "nodejs") {
35
await import("../sentry.server.config");
@@ -7,3 +9,5 @@ export async function register() {
79
await import("../sentry.edge.config");
810
}
911
}
12+
13+
export const onRequestError = Sentry.captureRequestError;

0 commit comments

Comments
 (0)