Comment out sentry
This commit is contained in:
+19
-19
@@ -1,27 +1,27 @@
|
|||||||
import * as sapper from '@sapper/app';
|
import * as sapper from '@sapper/app';
|
||||||
import * as Sentry from '@sentry/browser';
|
// import * as Sentry from '@sentry/browser';
|
||||||
import { Integrations } from '@sentry/tracing';
|
// import { Integrations } from '@sentry/tracing';
|
||||||
import { CaptureConsole } from '@sentry/integrations';
|
// import { CaptureConsole } from '@sentry/integrations';
|
||||||
import config from './config';
|
import config from './config';
|
||||||
|
|
||||||
console.log(`isProd`, config.isProd);
|
console.log(`isProd`, config.isProd);
|
||||||
|
|
||||||
if (config.isProd) {
|
// if (config.isProd) {
|
||||||
Sentry.init({
|
// Sentry.init({
|
||||||
dsn: 'https://[email protected]/5999999',
|
// dsn: 'https://[email protected]/5999999',
|
||||||
integrations: [
|
// integrations: [
|
||||||
new Integrations.BrowserTracing(),
|
// new Integrations.BrowserTracing(),
|
||||||
new CaptureConsole({
|
// new CaptureConsole({
|
||||||
levels: ['error'],
|
// levels: ['error'],
|
||||||
}),
|
// }),
|
||||||
],
|
// ],
|
||||||
environment: config.isProd ? 'production' : 'development',
|
// environment: config.isProd ? 'production' : 'development',
|
||||||
// Set tracesSampleRate to 1.0 to capture 100%
|
// // Set tracesSampleRate to 1.0 to capture 100%
|
||||||
// of transactions for performance monitoring.
|
// // of transactions for performance monitoring.
|
||||||
// We recommend adjusting this value in production
|
// // We recommend adjusting this value in production
|
||||||
tracesSampleRate: 1.0,
|
// tracesSampleRate: 1.0,
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
sapper.start({
|
sapper.start({
|
||||||
target: document.querySelector('#sapper'),
|
target: document.querySelector('#sapper'),
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
import { stores, goto } from '@sapper/app';
|
import { stores, goto } from '@sapper/app';
|
||||||
import isEmpty from 'lodash/isEmpty';
|
import isEmpty from 'lodash/isEmpty';
|
||||||
import mixpanel from 'mixpanel-browser';
|
import mixpanel from 'mixpanel-browser';
|
||||||
import * as Sentry from '@sentry/browser';
|
// import * as Sentry from '@sentry/browser';
|
||||||
import { Theme } from 'carbon-components-svelte';
|
import { Theme } from 'carbon-components-svelte';
|
||||||
import { Moon } from 'svelte-loading-spinners';
|
import { Moon } from 'svelte-loading-spinners';
|
||||||
import Tailwindcss from '../components/Tailwindcss.svelte';
|
import Tailwindcss from '../components/Tailwindcss.svelte';
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
profile.set(data[0]);
|
profile.set(data[0]);
|
||||||
|
|
||||||
// Set user in sentry
|
// Set user in sentry
|
||||||
Sentry.setUser($profile);
|
// Sentry.setUser($profile);
|
||||||
// Set user in Mixpanel
|
// Set user in Mixpanel
|
||||||
mixpanel.identify($profile.email);
|
mixpanel.identify($profile.email);
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
profile.set(profileData);
|
profile.set(profileData);
|
||||||
|
|
||||||
// Set user in sentry
|
// Set user in sentry
|
||||||
Sentry.setUser($profile);
|
// Sentry.setUser($profile);
|
||||||
if (config.isProd) {
|
if (config.isProd) {
|
||||||
// Set user in Mixpanel
|
// Set user in Mixpanel
|
||||||
mixpanel.identify($profile.email);
|
mixpanel.identify($profile.email);
|
||||||
|
|||||||
Reference in New Issue
Block a user