From d4fa64ce5bc8efa6961667617849aef612815aaf Mon Sep 17 00:00:00 2001 From: Tiago Silva Date: Tue, 16 Jul 2024 10:01:31 +0100 Subject: [PATCH] Fix init-sentry to only send console errors to Sentry --- src/init-sentry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init-sentry.ts b/src/init-sentry.ts index b5d90c920..dd8d2770a 100644 --- a/src/init-sentry.ts +++ b/src/init-sentry.ts @@ -8,7 +8,7 @@ if (config.sentryDSN) { integrations: [ Sentry.tanstackRouterBrowserTracingIntegration(router), Sentry.replayIntegration(), - Sentry.captureConsoleIntegration(), + Sentry.captureConsoleIntegration({ levels: ['error'] }), ], // Performance Monitoring tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!