Comment out sentry

This commit is contained in:
Rotimi Best
2023-07-06 15:49:09 +01:00
parent 2e3ce6d6f2
commit e72eadf260
2 changed files with 22 additions and 22 deletions
+19 -19
View File
@@ -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://[email protected]/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://[email protected]/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'),
+3 -3
View File
@@ -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);