feat: add sentry
This commit is contained in:
parent
27d9dee68e
commit
13de1a2137
3 changed files with 111 additions and 1 deletions
15
src/main.ts
15
src/main.ts
|
|
@ -13,6 +13,21 @@ import apitator from 'vue-apitator'
|
|||
// @ts-ignore
|
||||
import { TiptapVuetifyPlugin } from 'tiptap-vuetify'
|
||||
|
||||
import * as Sentry from '@sentry/browser'
|
||||
import { Vue as VueIntegration } from '@sentry/integrations'
|
||||
import { Integrations } from '@sentry/tracing'
|
||||
|
||||
if (process.env.VUE_APP_DISABLE_SENTRY == undefined) {
|
||||
Sentry.init({
|
||||
dsn: 'https://e69f240d55414b0ca7763773c2fe3a24@o315435.ingest.sentry.io/5410664',
|
||||
integrations: [
|
||||
new VueIntegration({ Vue, tracing: true }),
|
||||
new Integrations.BrowserTracing()
|
||||
],
|
||||
tracesSampleRate: 1
|
||||
})
|
||||
}
|
||||
|
||||
Vue.config.productionTip = false
|
||||
Vue.use(apitator, {
|
||||
baseUrl: process.env.VUE_APP_BASE_URL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue