Skip to content

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

chore: adjust sentry (#2086)

Max Deichmann89c1e46c5509
diff --git a/web/sentry.server.config.ts b/web/sentry.server.config.ts
index be37624bda..92211533ed 100644
--- a/web/sentry.server.config.ts
+++ b/web/sentry.server.config.ts
@@ -20,6 +20,15 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN)
) {
return 0.3;
}
+ if (
+ samplingContext.request &&
+ samplingContext.request.url &&
+ samplingContext.request.url.includes("api/auth") &&
+ samplingContext.transactionContext.status !== "ok" &&
+ samplingContext.transactionContext.status !== "unauthenticated"
+ ) {
+ return 1;
+ }
return 0.1;
},