vue-sentry/src/main.js

30 lines
689 B
JavaScript

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as Sentry from "@sentry/vue"
import App from './App.vue'
import router from './router'
import './assets/main.css'
const app = createApp(App)
Sentry.init({
app,
dsn: "https://928141231c6c46718b9631004c903c3f@sentry.derdritte.net/3",
integrations: [
new Sentry.BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
}),
],
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
})
app.use(createPinia())
app.use(router)
app.mount('#app')