-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsentry.client.config.ts
37 lines (32 loc) · 1.19 KB
/
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
37
import * as Sentry from "@sentry/nuxt";
Sentry.init({
// If set up, you can use your runtime config here
// dsn: useRuntimeConfig().public.sentry.dsn,
dsn: "https://0a58d5a27759f49515b390df6434d6c4@o4508759401234432.ingest.de.sentry.io/4508759403462736",
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
// This sets the sample rate to be 10%. You may want this to be 100% while
// in development and sample at a lower rate in production
replaysSessionSampleRate: 0.1,
// If the entire session is not sampled, use the below sample rate to sample
// sessions when an error occurs.
replaysOnErrorSampleRate: 1.0,
// If you don't want to use Session Replay, just remove the line below:
integrations: [Sentry.replayIntegration()],
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
beforeSend(event, hint) {
console.log({ event, hint });
if(window.testId){
event.tags = {
testId: window.testId
}
}
event.tags = {
...event.tags,
sourceApp: 'deployment-hub'
}
return event
},
});