diff --git a/sentry.server.config.ts b/sentry.server.config.ts index 575a8136..fae11d7b 100644 --- a/sentry.server.config.ts +++ b/sentry.server.config.ts @@ -12,8 +12,12 @@ Sentry.init({ environment: SENTRY_ENV ?? "development", // Adjust this value in production, or use tracesSampler for greater control tracesSampleRate: 0.1, - // ... - // Note: if you want to override the automatic release value, do not set a - // `release` value here - use the environment variable `SENTRY_RELEASE`, so - // that it will also get attached to your source maps + + // remove healthz probes + beforeSendTransaction: (event, hint) => { + if (event?.request?.url?.endsWith("/healthz")) { + return null; + } + return event; + }, });