2024-10-21 21:09:30 +02:00
|
|
|
import * as Sentry from '@sentry/nuxt';
|
2024-11-06 12:05:01 +00:00
|
|
|
import { usePinia } from '#imports'
|
2024-02-05 16:48:02 +01:00
|
|
|
import { envConfig } from '~/utils/environment'
|
|
|
|
|
|
|
|
|
|
const env = envConfig(window.location.hostname)
|
|
|
|
|
|
|
|
|
|
Sentry.init({
|
|
|
|
|
enabled: env.sentryEnabled,
|
|
|
|
|
dsn: 'https://da2e8d42185a4013909d49955432a116@o365290.ingest.sentry.io/5187660',
|
|
|
|
|
integrations: [
|
2024-02-07 04:39:30 +00:00
|
|
|
Sentry.browserTracingIntegration({ traceFetch: false }),
|
2024-02-05 16:48:02 +01:00
|
|
|
Sentry.replayIntegration(),
|
2024-11-06 12:05:01 +00:00
|
|
|
Sentry.piniaIntegration(usePinia(), {
|
|
|
|
|
/* optional Pinia plugin options */
|
|
|
|
|
}),
|
2024-02-05 16:48:02 +01:00
|
|
|
],
|
|
|
|
|
environment: env.name,
|
|
|
|
|
tracesSampleRate: env.tracesSampleRate,
|
|
|
|
|
replaysSessionSampleRate: env.replaysSessionSampleRate,
|
|
|
|
|
replaysOnErrorSampleRate: env.replaysOnErrorSampleRate,
|
|
|
|
|
})
|