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 76e97a5 commit fa37963
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
});

0 comments on commit fa37963

Please sign in to comment.