From 86cdb2cbf13d5c2a4bd25d7ea3218ab165dd7aa0 Mon Sep 17 00:00:00 2001 From: gmbronco <83549293+gmbronco@users.noreply.github.com> Date: Mon, 9 Sep 2024 10:03:48 +0200 Subject: [PATCH] reduce sentry profile sampling rate (#914) --- apps/api/sentry.ts | 2 +- apps/worker/sentry.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/sentry.ts b/apps/api/sentry.ts index 7d603a44..c95d4346 100644 --- a/apps/api/sentry.ts +++ b/apps/api/sentry.ts @@ -25,7 +25,7 @@ export const initApiSentry = () => { // Set sampling rate for profiling // This is relative to tracesSampleRate - profilesSampleRate: 0.01, + profilesSampleRate: 0.001, beforeSend(event, hint) { const error = hint.originalException; diff --git a/apps/worker/sentry.ts b/apps/worker/sentry.ts index 5c5280ab..10cb0618 100644 --- a/apps/worker/sentry.ts +++ b/apps/worker/sentry.ts @@ -21,7 +21,7 @@ export const initWorkerSentry = () => { // Set sampling rate for profiling // This is relative to tracesSampleRate - profilesSampleRate: 0.01, + profilesSampleRate: 0.001, beforeSend: (event) => { if (event.tags?.job && event.tags?.chain) {