-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstrumentation-client.ts
More file actions
32 lines (26 loc) · 1.21 KB
/
instrumentation-client.ts
File metadata and controls
32 lines (26 loc) · 1.21 KB
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
28
29
30
31
32
// This file configures the initialization of Sentry on the client.
// The added config here will be used whenever a users loads a page in their browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from "@sentry/nextjs";
// Only initialize Sentry in production
if (process.env.NODE_ENV === "production") {
Sentry.init({
dsn: "https://d4d2dfa789477bdaeea1a7e468f54d08@o4509168932880384.ingest.de.sentry.io/4509168934125648",
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 0.2,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
ignoreErrors: [
/router state header.*could not be parsed/i,
/Failed to execute 'removeChild' on 'Node'/,
/Failed to execute 'insertBefore' on 'Node'/,
/Failed to execute 'appendChild' on 'Node'/,
/setPhotoOptions failed/,
/The associated Track is in an invalid state/,
/Proposal expired/,
/Connection interrupted/,
/Error invoking postEvent/,
],
});
}
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;