Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: sentry performance monitoring (#42861)

Jordi Enric591d46e49126
diff --git a/apps/studio/instrumentation-client.ts b/apps/studio/instrumentation-client.ts
index 9bd34e8177f..5dd543ad6d3 100644
--- a/apps/studio/instrumentation-client.ts
+++ b/apps/studio/instrumentation-client.ts
@@ -57,6 +57,10 @@ Sentry.init({
}),
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
+
+ // Enable performance monitoring - Next.js routes and API calls are automatically instrumented
+ tracesSampleRate: 0.1, // Capture 10% of transactions for performance monitoring
+
// [Ali] Filter out browser extensions and user scripts (FE-2094)
// Using denyUrls to block known third-party script patterns
denyUrls: [/userscript/i],
diff --git a/apps/studio/sentry.edge.config.ts b/apps/studio/sentry.edge.config.ts
index c5db7e27ad9..ad17e8b86a2 100644
--- a/apps/studio/sentry.edge.config.ts
+++ b/apps/studio/sentry.edge.config.ts
@@ -12,4 +12,7 @@ Sentry.init({
}),
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
+
+ // Enable performance monitoring
+ tracesSampleRate: 0.1, // Capture 10% of transactions for performance monitoring
})
diff --git a/apps/studio/sentry.server.config.ts b/apps/studio/sentry.server.config.ts
index dba6457bc5f..13d62e7bc31 100644
--- a/apps/studio/sentry.server.config.ts
+++ b/apps/studio/sentry.server.config.ts
@@ -11,6 +11,9 @@ Sentry.init({
}),
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
+
+ // Enable performance monitoring
+ tracesSampleRate: 0.1, // Capture 10% of transactions for performance monitoring
ignoreErrors: [
// Used exclusively in Monaco Editor.
'ResizeObserver',