-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsentry.client.config.ts
36 lines (35 loc) · 1015 Bytes
/
sentry.client.config.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
28
29
30
31
32
33
34
35
36
import * as Sentry from "@sentry/browser";
Sentry.init({
dsn: "https://42c25ee2fb084eb5a832ee92d97057d5@o182209.ingest.us.sentry.io/6265934",
integrations: [
Sentry.replayIntegration({
networkDetailAllowUrls: [
window.location.origin,
"localhost",
"https://api.comfig.app/",
"https://worker.comfig.app/",
],
}),
Sentry.browserTracingIntegration({
enableInp: true,
}),
Sentry.browserProfilingIntegration(),
Sentry.captureConsoleIntegration({
levels: ["warn", "error", "assert"],
}),
Sentry.extraErrorDataIntegration(),
Sentry.httpClientIntegration(),
Sentry.reportingObserverIntegration(),
Sentry.contextLinesIntegration(),
Sentry.sessionTimingIntegration(),
],
tracesSampleRate: 0.1,
tracePropagationTargets: [
"localhost",
/https:\/\/api.comfig.app/,
/https:\/\/worker.comfig.app/,
],
profilesSampleRate: 1.0,
replaysSessionSampleRate: 0.005,
replaysOnErrorSampleRate: 0.01,
});