-
Notifications
You must be signed in to change notification settings - Fork 0
/
instrumentation.ts
27 lines (21 loc) · 994 Bytes
/
instrumentation.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import * as Sentry from "@sentry/nextjs"
export function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
Sentry.init({
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
dsn: "https://4d223758032c2be657b494c898b0e3f0@o912297.ingest.sentry.io/4506345522724864",
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
})
}
if (process.env.NEXT_RUNTIME === "edge") {
Sentry.init({
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
dsn: "https://4d223758032c2be657b494c898b0e3f0@o912297.ingest.sentry.io/4506345522724864",
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
})
}
}