-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstrumentation-client.ts
More file actions
43 lines (32 loc) · 1.09 KB
/
instrumentation-client.ts
File metadata and controls
43 lines (32 loc) · 1.09 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
33
34
35
36
37
38
39
40
41
42
43
/**
* Next.js client instrumentation – Sentry init (runs in the browser).
* Replaces sentry.client.config.ts for Turbopack compatibility.
*/
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: 1.0,
debug: false,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
integrations: [
Sentry.replayIntegration({
maskAllText: true,
blockAllMedia: true,
}),
Sentry.consoleLoggingIntegration({
levels: ["log", "warn", "error"],
}),
],
profilesSampleRate: 1.0,
environment: process.env.NODE_ENV || "development",
release: process.env.NEXT_PUBLIC_SENTRY_RELEASE || undefined,
ignoreErrors: [
"top.GLOBALS",
"ResizeObserver loop limit exceeded",
"Non-Error promise rejection captured",
// Browser extension (e.g. wallet) trying to overwrite window.solana; not from our code (app:///extensionPageScript.js)
"Cannot assign to read only property 'solana' of object '#<Window>'",
],
});
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;