Skip to content

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

perf: adjust sampling for trpc (#1848)

Max Deichmanne49ba5448e20
diff --git a/web/sentry.server.config.ts b/web/sentry.server.config.ts
index 367bbccd48..92f175ab13 100644
--- a/web/sentry.server.config.ts
+++ b/web/sentry.server.config.ts
@@ -15,11 +15,10 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN)
tracesSampler: (samplingContext: SamplingContext) => {
if (
samplingContext.request &&
- samplingContext.request.method === "POST" &&
samplingContext.request.url &&
samplingContext.request.url.includes("api/trpc")
) {
- return 0.9;
+ return 0.8;
}
return 0.15;
},