Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: reduce sentry sampling (#2212)

Max Deichmann2a420b2e90d7
diff --git a/web/sentry.server.config.ts b/web/sentry.server.config.ts
index 92211533ed..c4b7ec6f16 100644
--- a/web/sentry.server.config.ts
+++ b/web/sentry.server.config.ts
@@ -18,7 +18,7 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN)
samplingContext.request.url &&
samplingContext.request.url.includes("api/trpc")
) {
- return 0.3;
+ return 0.1;
}
if (
samplingContext.request &&
@@ -27,12 +27,12 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN)
samplingContext.transactionContext.status !== "ok" &&
samplingContext.transactionContext.status !== "unauthenticated"
) {
- return 1;
+ return 0.1;
}
- return 0.1;
+ return 0.01;
},
- profilesSampleRate: 0.2, // Profiling sample rate is relative to tracesSampleRate
+ profilesSampleRate: 0.1,
integrations: [
// Add profiling integration to list of integrations
new ProfilingIntegration(),
diff --git a/worker/src/app.ts b/worker/src/app.ts
index 7b8506e2a3..01eeabf384 100644
--- a/worker/src/app.ts
+++ b/worker/src/app.ts
@@ -31,9 +31,9 @@ if (isSentryEnabled) {
Sentry.metrics.metricsAggregatorIntegration(),
],
// Performance Monitoring
- tracesSampleRate: 0.1, // Capture 100% of the transactions
+ tracesSampleRate: 0.01, // Capture 100% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
- profilesSampleRate: 0.1,
+ profilesSampleRate: 0.01,
sampleRate: 0.1,
});