Skip to content

Commit

Permalink
use lower sample rate by default for sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Sep 15, 2023
1 parent c409186 commit 4a67822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Sentry.init({
new Tracing.Integrations.Express({ app }),
],
environment: process.env.SENTRY_ENV,
tracesSampleRate: 1.0,
tracesSampleRate: parseFloat(process.env.SENTRY_SAMPLE_RATE) || 0.01,
});

app.use(Sentry.Handlers.requestHandler());
Expand Down

0 comments on commit 4a67822

Please sign in to comment.