From e72eadf260382bb73a948ddd880e9bb0989af924 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Thu, 6 Jul 2023 15:48:42 +0100 Subject: [PATCH] Comment out sentry --- src/client.js | 38 +++++++++++++++++++------------------- src/routes/_layout.svelte | 6 +++--- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/client.js b/src/client.js index 09e27ae6..d44792cd 100644 --- a/src/client.js +++ b/src/client.js @@ -1,27 +1,27 @@ import * as sapper from '@sapper/app'; -import * as Sentry from '@sentry/browser'; -import { Integrations } from '@sentry/tracing'; -import { CaptureConsole } from '@sentry/integrations'; +// import * as Sentry from '@sentry/browser'; +// import { Integrations } from '@sentry/tracing'; +// import { CaptureConsole } from '@sentry/integrations'; import config from './config'; console.log(`isProd`, config.isProd); -if (config.isProd) { - Sentry.init({ - dsn: 'https://c966f7e8cb1d4306be20b26bb4f0cc96@o476906.ingest.sentry.io/5999999', - integrations: [ - new Integrations.BrowserTracing(), - new CaptureConsole({ - levels: ['error'], - }), - ], - environment: config.isProd ? 'production' : 'development', - // Set tracesSampleRate to 1.0 to capture 100% - // of transactions for performance monitoring. - // We recommend adjusting this value in production - tracesSampleRate: 1.0, - }); -} +// if (config.isProd) { +// Sentry.init({ +// dsn: 'https://c966f7e8cb1d4306be20b26bb4f0cc96@o476906.ingest.sentry.io/5999999', +// integrations: [ +// new Integrations.BrowserTracing(), +// new CaptureConsole({ +// levels: ['error'], +// }), +// ], +// environment: config.isProd ? 'production' : 'development', +// // Set tracesSampleRate to 1.0 to capture 100% +// // of transactions for performance monitoring. +// // We recommend adjusting this value in production +// tracesSampleRate: 1.0, +// }); +// } sapper.start({ target: document.querySelector('#sapper'), diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte index 330fe5e8..04575498 100644 --- a/src/routes/_layout.svelte +++ b/src/routes/_layout.svelte @@ -10,7 +10,7 @@ import { stores, goto } from '@sapper/app'; import isEmpty from 'lodash/isEmpty'; import mixpanel from 'mixpanel-browser'; - import * as Sentry from '@sentry/browser'; + // import * as Sentry from '@sentry/browser'; import { Theme } from 'carbon-components-svelte'; import { Moon } from 'svelte-loading-spinners'; import Tailwindcss from '../components/Tailwindcss.svelte'; @@ -99,7 +99,7 @@ profile.set(data[0]); // Set user in sentry - Sentry.setUser($profile); + // Sentry.setUser($profile); // Set user in Mixpanel mixpanel.identify($profile.email); @@ -139,7 +139,7 @@ profile.set(profileData); // Set user in sentry - Sentry.setUser($profile); + // Sentry.setUser($profile); if (config.isProd) { // Set user in Mixpanel mixpanel.identify($profile.email);