-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sentry.client.config.ts
17 lines (16 loc) · 1.04 KB
/
sentry.client.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { useRuntimeConfig } from '#imports';
import * as Sentry from '@sentry/nuxt';
Sentry.init({
release: "[email protected]", // This should be the version of your application
// If set up, you can use your runtime config here
dsn: useRuntimeConfig().public.sentry.dsn,
integrations: [Sentry.replayIntegration()],
// Tracing
// We recommend adjusting this value in production, or using a tracesSampler for finer control.
tracesSampleRate: 0.3, // Capture 100% of the transactions
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/, "https://eralpozcan.dev/"],
// Session Replay
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
});