Skip to content

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

fix: adjust sentry sampling rate (#1311)

Max Deichmanne9e8319099e0
diff --git a/web/sentry.server.config.ts b/web/sentry.server.config.ts
index 6dbf9ed242..faf816f9bd 100644
--- a/web/sentry.server.config.ts
+++ b/web/sentry.server.config.ts
@@ -2,6 +2,7 @@ import { prisma } from "@/src/server/db";
import { jsonSchema } from "@/src/utils/zod";
import * as Sentry from "@sentry/nextjs";
import { ProfilingIntegration } from "@sentry/profiling-node";
+
import type { SamplingContext, TransactionEvent } from "@sentry/types";
if (process.env.NEXT_PUBLIC_SENTRY_DSN)
@@ -22,10 +23,10 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN)
) {
return 1.0;
}
- return 1.0;
+ return 0.2;
},
- profilesSampleRate: 0.3, // Profiling sample rate is relative to tracesSampleRate
+ profilesSampleRate: 0.2, // Profiling sample rate is relative to tracesSampleRate
integrations: [
// Add profiling integration to list of integrations
new ProfilingIntegration(),