Skip to content

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

feat: add sentry sampling via env to worker (#2788)

Max Deichmannc564608ee716
diff --git a/worker/src/instrumentation.ts b/worker/src/instrumentation.ts
index 8663f9c682..144f250139 100644
--- a/worker/src/instrumentation.ts
+++ b/worker/src/instrumentation.ts
@@ -19,7 +19,7 @@ Sentry.init({
// Add Tracing by setting tracesSampleRate
// We recommend adjusting this value in production
- tracesSampleRate: 0.5,
+ tracesSampleRate: env.LANGFUSE_TRACING_SAMPLE_RATE,
// Set sampling rate for profiling
// This is relative to tracesSampleRate