diff --git a/apps/login/sentry.server.config.ts b/apps/login/sentry.server.config.ts index ca9da723c..324c0a24e 100644 --- a/apps/login/sentry.server.config.ts +++ b/apps/login/sentry.server.config.ts @@ -8,7 +8,9 @@ Sentry.init({ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. - tracesSampleRate: 1, + tracesSampleRate: 0.1, + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii diff --git a/apps/login/src/instrumentation-client.ts b/apps/login/src/instrumentation-client.ts index 03f7eca27..4a46fb382 100644 --- a/apps/login/src/instrumentation-client.ts +++ b/apps/login/src/instrumentation-client.ts @@ -11,7 +11,7 @@ Sentry.init({ integrations: [Sentry.replayIntegration()], // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. - tracesSampleRate: 1, + tracesSampleRate: 0.1, // Define how likely Replay events are sampled. // This sets the sample rate to be 10%. You may want this to be 100% while