From 10f49d85f1a0262ffcdbee71f532f45091be25df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gulbinowicz?= Date: Wed, 15 Apr 2026 16:34:51 +0200 Subject: [PATCH] chore(sentry): decrease tracesSampleRate to prevent blowing through quota (#44901) ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Chore ## What is the current behavior? 100% of traces are being sent to Sentry, which alone would blew through all of our quota leaving no spans available for other projects. For April we are already rate limited. ## What is the new behavior? Change `tracesSampleRate` to more reasonable value (0.02). ## Summary by CodeRabbit * **Chores** * Optimized performance monitoring sampling configuration to reduce application overhead while maintaining essential error tracking and diagnostics. --- apps/studio/instrumentation-client.ts | 2 +- apps/studio/sentry.edge.config.ts | 2 +- apps/studio/sentry.server.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/studio/instrumentation-client.ts b/apps/studio/instrumentation-client.ts index b9b26d37d26..0097516a418 100644 --- a/apps/studio/instrumentation-client.ts +++ b/apps/studio/instrumentation-client.ts @@ -97,7 +97,7 @@ Sentry.init({ debug: false, // Enable performance monitoring - tracesSampleRate: 1.0, // Capture 100% of transactions for performance monitoring + tracesSampleRate: 0.02, integrations: (() => { const thirdPartyErrorFilterIntegration = (Sentry as any).thirdPartyErrorFilterIntegration diff --git a/apps/studio/sentry.edge.config.ts b/apps/studio/sentry.edge.config.ts index 6b676515883..0477c1441ee 100644 --- a/apps/studio/sentry.edge.config.ts +++ b/apps/studio/sentry.edge.config.ts @@ -14,7 +14,7 @@ Sentry.init({ debug: false, // Enable performance monitoring - tracesSampleRate: 1.0, // Capture 100% of transactions for performance monitoring + tracesSampleRate: 0.02, ignoreErrors: [ 'NEXT_NOT_FOUND', 'NEXT_REDIRECT', diff --git a/apps/studio/sentry.server.config.ts b/apps/studio/sentry.server.config.ts index fa1dc65179e..2e5ea6049ac 100644 --- a/apps/studio/sentry.server.config.ts +++ b/apps/studio/sentry.server.config.ts @@ -13,7 +13,7 @@ Sentry.init({ debug: false, // Enable performance monitoring - tracesSampleRate: 1.0, // Capture 100% of transactions for performance monitoring + tracesSampleRate: 0.02, ignoreErrors: [ 'ResizeObserver', 'Failed to load Stripe.js',