From 7583c0699dfb40154fb787849d4da27eefa2ed99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 6 Nov 2023 08:06:55 +0100 Subject: [PATCH] Setup Sentry's session replay --- src/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 2ea458969e..ce7b960311 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -26,8 +26,10 @@ import { GoogleOAuth } from './components/GoogleOAuth'; Sentry.init({ dsn: import.meta.env.VITE_SENTRY_URL as unknown as string, - integrations: [new Sentry.BrowserTracing()], + integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()], tracesSampleRate: 1.0, + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, }); i18n.use(initReactI18next).init({