🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
perf(audit-logs): run the audit log relay every 10 seconds (#18737)
Steffen Reuther494d0838f042
diff --git a/.env.prod.example b/.env.prod.exampleindex f932e756bc..0dcb934a71 100644--- a/.env.prod.example+++ b/.env.prod.example@@ -444,7 +444,7 @@ LANGFUSE_ENABLE_BLOB_STORAGE_FILE_LOG=true# cloud region above is set. While it is disabled, staged events wait in# Postgres.# LANGFUSE_AUDIT_LOG_RELAY_ENABLED=true-# LANGFUSE_AUDIT_LOG_RELAY_INTERVAL_MS=1000+# LANGFUSE_AUDIT_LOG_RELAY_INTERVAL_MS=10000# LANGFUSE_AUDIT_LOG_RELAY_LOCK_TTL_SECONDS=60# LANGFUSE_TEAM_SLACK_WEBHOOK=diff --git a/worker/src/env.ts b/worker/src/env.tsindex 33817a04cd..b4965cf315 100644--- a/worker/src/env.ts+++ b/worker/src/env.ts@@ -678,7 +678,7 @@ const EnvSchema = z.object({.number().int().positive()- .default(1_000),+ .default(10_000),// Tasks without the lease check it every half TTL, and a batch must finish// within half of it.LANGFUSE_AUDIT_LOG_RELAY_LOCK_TTL_SECONDS: z.coerce