Add logging

This commit is contained in:
wvffle 2022-07-31 20:38:55 +00:00 committed by Georg Krause
commit 36ada7a225

View file

@ -5,11 +5,15 @@ import type { App } from 'vue'
const COOKIE = 'allow-tracing'
const initSentry = async (app: App, router: Router) => {
const [{ BrowserTracing }, Sentry] = await Promise.all([
const [{ default: useLogger }, { BrowserTracing }, Sentry] = await Promise.all([
import('~/composables/useLogger'),
import('@sentry/tracing'),
import('@sentry/vue')
])
const logger = useLogger()
logger.info('Initializing Sentry')
Sentry.init({
app,
dsn: import.meta.env.VUE_SENTRY_DSN,