Skip to content

Commit

Permalink
Merge pull request #398 from MuckRock/sentry-sample-rate
Browse files Browse the repository at this point in the history
Try half sampling
  • Loading branch information
eyeseast authored Dec 19, 2023
2 parents aca7b13 + 45c31f5 commit 3f8ee9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (!IS_EMBED && SENTRY_DSN) {
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
tracesSampleRate: 0.5,

// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled
tracePropagationTargets: [
Expand All @@ -28,7 +28,7 @@ if (!IS_EMBED && SENTRY_DSN) {
// Capture Replay for 10% of all sessions,
// plus for 100% of sessions with an error
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
replaysOnErrorSampleRate: 0.5,
});
});
} else {
Expand Down

0 comments on commit 3f8ee9e

Please sign in to comment.