sentry.client.ts 335 B

1234567891011121314
  1. import * as Sentry from '@sentry/nuxt'
  2. const { public: { SENTRY_DSN } } = useRuntimeConfig()
  3. Sentry.init({
  4. dsn: import.meta.dev ? '' : SENTRY_DSN,
  5. integrations: [Sentry.replayIntegration()],
  6. tracesSampleRate: 1.0,
  7. tracePropagationTargets: ['localhost'],
  8. replaysSessionSampleRate: 0.1,
  9. replaysOnErrorSampleRate: 1.0,
  10. })