diff --git a/sentry.client.config.js b/sentry.client.config.js index 5a64fa3b..5aa3f91d 100644 --- a/sentry.client.config.js +++ b/sentry.client.config.js @@ -3,5 +3,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, environment: process.env.NEXT_PUBLIC_APP_ENV, - tracesSampleRate: 1.0, + tracesSampleRate: 0.3, + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, }); diff --git a/sentry.edge.config.js b/sentry.edge.config.js new file mode 100644 index 00000000..5aa3f91d --- /dev/null +++ b/sentry.edge.config.js @@ -0,0 +1,9 @@ +import * as Sentry from '@sentry/nextjs'; + +Sentry.init({ + dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, + environment: process.env.NEXT_PUBLIC_APP_ENV, + tracesSampleRate: 0.3, + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, +}); diff --git a/sentry.server.config.js b/sentry.server.config.js index 5a64fa3b..5aa3f91d 100644 --- a/sentry.server.config.js +++ b/sentry.server.config.js @@ -3,5 +3,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, environment: process.env.NEXT_PUBLIC_APP_ENV, - tracesSampleRate: 1.0, + tracesSampleRate: 0.3, + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, });