Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
fix(sentry): exclude probes
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Oct 10, 2023
1 parent 170d0ce commit 228c648
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ Sentry.init({
environment: SENTRY_ENV ?? "development",
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 0.1,
// remove healthz probes
beforeSendTransaction: (event, hint) => {
if (event?.request?.url?.endsWith("/healthz")) {
return null;
}
return event;
},
// ...
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
Expand Down

0 comments on commit 228c648

Please sign in to comment.