CLASSROOMIO-T-24: Add sentry

This commit is contained in:
rotimi-best
2021-10-09 22:14:46 +03:00
parent ea3ce7dd69
commit 32ee665cb4
4 changed files with 6902 additions and 158 deletions
+6877 -157
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -11,6 +11,9 @@
},
"dependencies": {
"@rollup/plugin-json": "^4.1.0",
"@sentry/browser": "^6.13.3",
"@sentry/integrations": "^6.13.3",
"@sentry/tracing": "^6.13.3",
"@supabase/supabase-js": "^1.20.0",
"@tailwindcss/forms": "^0.3.2",
"body-parser": "^1.19.0",
+21
View File
@@ -1,4 +1,25 @@
import * as sapper from '@sapper/app';
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);
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'),
+1 -1
View File
@@ -1,5 +1,5 @@
export default {
// isProd: process.env.NODE_ENV === 'development',
isProd: process.env.NODE_ENV !== 'development',
supabaseConfig: {
bucketPath:
'https://koxqonvbkeakwvmdegcf.supabase.in/storage/v1/object/sign/',