Add sentry front-end tracking
This commit is contained in:
1
resources/js/plugins/index.js
vendored
1
resources/js/plugins/index.js
vendored
@@ -2,3 +2,4 @@ import './axios'
|
||||
import './vue-plugins'
|
||||
import './amplitude'
|
||||
import './vapor'
|
||||
import './sentry'
|
||||
|
||||
17
resources/js/plugins/sentry.js
vendored
Normal file
17
resources/js/plugins/sentry.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import Vue from 'vue'
|
||||
import * as Sentry from '@sentry/vue'
|
||||
|
||||
if (window.config.sentry_dsn) {
|
||||
Sentry.init({
|
||||
Vue,
|
||||
dsn: window.config.sentry_dsn,
|
||||
integrations: [],
|
||||
// Performance Monitoring
|
||||
tracesSampleRate: 0.01,
|
||||
logErrors: true,
|
||||
debug: false
|
||||
})
|
||||
if (!window.config.production) {
|
||||
console.info('== Sentry enabled ==')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user