From a4e47a20718078b42b1185cd75ecced6d866ba9e Mon Sep 17 00:00:00 2001 From: gmbronco <83549293+gmbronco@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:02:49 +0100 Subject: [PATCH] adjust sentry sample rates --- .changeset/many-jeans-sip.md | 5 +++++ apps/api/sentry.ts | 4 ++-- apps/worker/sentry.ts | 6 +++--- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .changeset/many-jeans-sip.md diff --git a/.changeset/many-jeans-sip.md b/.changeset/many-jeans-sip.md new file mode 100644 index 000000000..5c4e3f7e0 --- /dev/null +++ b/.changeset/many-jeans-sip.md @@ -0,0 +1,5 @@ +--- +'backend': patch +--- + +adjust sentry sample rates diff --git a/apps/api/sentry.ts b/apps/api/sentry.ts index 0e748e4dc..f2bffee70 100644 --- a/apps/api/sentry.ts +++ b/apps/api/sentry.ts @@ -19,11 +19,11 @@ export const initApiSentry = () => { // Add Tracing by setting tracesSampleRate // We recommend adjusting this value in production - tracesSampleRate: 0.005, + tracesSampleRate: 0, // Set sampling rate for profiling // This is relative to tracesSampleRate - profilesSampleRate: 0.001, + profilesSampleRate: 0, beforeSend(event, hint) { const error = hint.originalException; diff --git a/apps/worker/sentry.ts b/apps/worker/sentry.ts index 0cd655f4e..cc4ae2705 100644 --- a/apps/worker/sentry.ts +++ b/apps/worker/sentry.ts @@ -14,12 +14,12 @@ export const initWorkerSentry = () => { ], // Add Tracing by setting tracesSampleRate - // We recommend adjusting this value in production - tracesSampleRate: 0.005, + // Send 1% of transactions to Sentry + tracesSampleRate: 0.01, // Set sampling rate for profiling // This is relative to tracesSampleRate - profilesSampleRate: 0.001, + profilesSampleRate: 0.01, beforeSend: (event) => { if (event.tags?.job && event.tags?.chain) {