From 250b8f775c621c2ad54d4e88c9ed09a65d9ecf8b Mon Sep 17 00:00:00 2001 From: Thomas Parisot Date: Tue, 4 Feb 2025 19:01:41 +0100 Subject: [PATCH] feat: capture les erreurs/warnings de console dans Sentry --- front/src/index.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/front/src/index.jsx b/front/src/index.jsx index 9c84087a4..eb54a6f45 100644 --- a/front/src/index.jsx +++ b/front/src/index.jsx @@ -42,6 +42,7 @@ if (SENTRY_DSN) { Sentry.reactRouterV5BrowserTracingIntegration({ history }), Sentry.replayIntegration(), Sentry.replayCanvasIntegration(), + Sentry.captureConsoleIntegration({ levels: ['warn', 'error', 'assert'] }), ], tracesSampleRate: 1.0, replaysSessionSampleRate: 0.1,