1873c74776
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/919 Reviewed-by: dpschen <dpschen@noreply.kolaente.de> Co-authored-by: konrad <k@knt.li> Co-committed-by: konrad <k@knt.li>
19 lines
475 B
JavaScript
19 lines
475 B
JavaScript
import {VERSION} from './version.json'
|
|
|
|
export default async function setupSentry(app, router) {
|
|
const Sentry = await import('@sentry/vue')
|
|
const {Integrations} = await import('@sentry/tracing')
|
|
|
|
Sentry.init({
|
|
release: VERSION,
|
|
app,
|
|
dsn: window.SENTRY_DSN,
|
|
integrations: [
|
|
new Integrations.BrowserTracing({
|
|
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
|
|
tracingOrigins: ['localhost', /^\//],
|
|
}),
|
|
],
|
|
tracesSampleRate: 1.0,
|
|
})
|
|
}
|