sentry.client.config.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. import * as Sentry from '@sentry/nuxt'
  2. Sentry.init({
  3. // If set up, you can use your runtime config here
  4. // dsn: useRuntimeConfig().public.sentry.dsn,
  5. dsn: 'https://5a42d73350e084df0891c0c7e0e5ba3a@o4510503923220480.ingest.us.sentry.io/4510503931346944',
  6. // We recommend adjusting this value in production, or using tracesSampler
  7. // for finer control
  8. tracesSampleRate: 1.0,
  9. // This sets the sample rate to be 10%. You may want this to be 100% while
  10. // in development and sample at a lower rate in production
  11. replaysSessionSampleRate: 0.1,
  12. // If the entire session is not sampled, use the below sample rate to sample
  13. // sessions when an error occurs.
  14. replaysOnErrorSampleRate: 1.0,
  15. // If you don't want to use Session Replay, just remove the line below:
  16. integrations: [Sentry.replayIntegration()],
  17. // Enable logs to be sent to Sentry
  18. enableLogs: true,
  19. // Enable sending of user PII (Personally Identifiable Information)
  20. // https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
  21. sendDefaultPii: true,
  22. // Setting this option to true will print useful information to the console while you're setting up Sentry.
  23. debug: false,
  24. })