From e9bb0fe4d033fe45eda03c3299d46d2969b640e9 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sun, 29 Oct 2023 11:36:29 +0000 Subject: [PATCH] CLASSROOMIO-T-216: remove hotjar, add sentry session replay --- src/app.html | 3 --- src/routes/+layout.svelte | 15 ++++++--------- src/routes/invite/s/[hash]/+page.svelte | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/app.html b/src/app.html index 69313f01..054a4160 100644 --- a/src/app.html +++ b/src/app.html @@ -43,9 +43,6 @@ --> - - %sveltekit.head% diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 39b78d74..fd65ff35 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -38,7 +38,6 @@ import hideNavByRoute from '$lib/utils/functions/routes/hideNavByRoute'; import shouldRedirectOnAuth from '$lib/utils/functions/routes/shouldRedirectOnAuth'; import AddOrgModal from '$lib/components/Org/AddOrgModal/AddOrgModal.svelte'; - import Hotjar from '$lib/components/Hotjar/index.svelte'; import '../app.postcss'; @@ -64,10 +63,12 @@ new Sentry.Replay() ], environment: !dev ? 'production' : 'development', - // Set tracesSampleRate to 1.0 to capture 100% - // of transactions for performance monitoring. - // We recommend adjusting this value in production - tracesSampleRate: 0.5 + // 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.5, + // If the entire session is not sampled, use the below sample rate to sample + // sessions when an error occurs. + replaysOnErrorSampleRate: 1.0 }); } } @@ -281,10 +282,6 @@ -{#if !dev} - -{/if} - {#if data.skipAuth} {:else if data.isOrgSite && !path} diff --git a/src/routes/invite/s/[hash]/+page.svelte b/src/routes/invite/s/[hash]/+page.svelte index 1d5d5ce5..ced58377 100644 --- a/src/routes/invite/s/[hash]/+page.svelte +++ b/src/routes/invite/s/[hash]/+page.svelte @@ -60,7 +60,7 @@ addGroupMember(member).then((addedMember) => { loading = false; if (addedMember.error) { - console.error('Error adding student to group', data.groupId); + console.error('Error adding student to group', data.groupId, addedMember.error); snackbar.error('Joining failed, please contact your admin'); return; }