From a3e60402f9f71e7ff7277bb150357cbb7ac6bca9 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Sat, 7 Dec 2024 14:37:44 -0500 Subject: [PATCH] Added Sentry User Feedback Button --- sentry.client.config.ts | 15 +++++++++++---- tailwind.config.ts | 6 +++++- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/sentry.client.config.ts b/sentry.client.config.ts index e800eb4..a5cbf1e 100644 --- a/sentry.client.config.ts +++ b/sentry.client.config.ts @@ -8,15 +8,22 @@ Sentry.init({ dsn: 'https://bb697105eaabbc6f70af12e84e936ded@o4508368569368576.ingest.us.sentry.io/4508368582017024', // Add optional integrations for additional features - integrations: [Sentry.replayIntegration()], + integrations: [ + Sentry.replayIntegration({ + maskAllText: true, + blockAllMedia: true, + }), + Sentry.feedbackIntegration({ + colorScheme: 'system', + enableScreenshot: true, + }), + ], // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. tracesSampleRate: 1, // Define how likely Replay events are sampled. - // This sets the sample rate to be 10%. You may want this to be 100% while - // in development and sample at a lower rate in production - replaysSessionSampleRate: 0.1, + replaysSessionSampleRate: 0.5, // Define how likely Replay events are sampled when an error occurs. replaysOnErrorSampleRate: 1.0, diff --git a/tailwind.config.ts b/tailwind.config.ts index 53882bc..cc08e2f 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -80,7 +80,11 @@ const config = { }, }, }, - plugins: [require('tailwindcss-animate'), require('@tailwindcss/typography'), fluid], + plugins: [ + require('tailwindcss-animate'), + require('@tailwindcss/typography'), + fluid, + ], } satisfies Config; export default config;