From 8ab940c31ab6702aa6e60c3208dfd0418fd60c3c Mon Sep 17 00:00:00 2001 From: danilo neves cruz Date: Thu, 22 Aug 2024 12:18:30 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20sentry:=20decrease=20replay=20an?= =?UTF-8?q?d=20middleware=20trace=20rates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sentry.client.config.ts | 2 +- sentry.edge.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sentry.client.config.ts b/sentry.client.config.ts index 01969a112..7b598de7d 100644 --- a/sentry.client.config.ts +++ b/sentry.client.config.ts @@ -10,7 +10,7 @@ init({ environment: SENTRY_ENVIRONMENT, tracesSampleRate: 1.0, replaysOnErrorSampleRate: 1.0, - replaysSessionSampleRate: 0.1, + replaysSessionSampleRate: 0.01, integrations: [new ExtraErrorData({ depth: 5 }), new Replay()], beforeSend, }); diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts index 19e333f55..a3ece85db 100644 --- a/sentry.edge.config.ts +++ b/sentry.edge.config.ts @@ -4,5 +4,5 @@ const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; init({ dsn: SENTRY_DSN, - tracesSampleRate: 1, + tracesSampleRate: 0.001, });