sentry.client.config.js 749 B

123456789101112131415161718192021222324
  1. import * as Sentry from '@sentry/nextjs'
  2. Sentry.init({
  3. dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
  4. // Replay may only be enabled for the client-side
  5. integrations: [new Sentry.Replay()],
  6. // Set tracesSampleRate to 1.0 to capture 100%
  7. // of transactions for performance monitoring.
  8. // We recommend adjusting this value in production
  9. tracesSampleRate: 0.1,
  10. // Capture Replay for 10% of all sessions,
  11. // plus for 100% of sessions with an error
  12. replaysSessionSampleRate: 0.1,
  13. replaysOnErrorSampleRate: 1.0,
  14. // ...
  15. // Note: if you want to override the automatic release value, do not set a
  16. // `release` value here - use the environment variable `SENTRY_RELEASE`, so
  17. // that it will also get attached to your source maps
  18. })