🪢 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
fix: use set utility for seen traces to fix cluster slot detection (#8990)
Steffen Schmitza13b5d0d3213
diff --git a/REVIEW.md b/REVIEW.mdindex 8f6f4b702a..18e3f0c27d 100644--- a/REVIEW.md+++ b/REVIEW.md@@ -17,3 +17,8 @@### Environment Variables- Environment variables should be imported from the `env.mjs/ts` file of the respective package and not from `process.env.*` to ensure validation and typing.++## Redis Invocations++- Highlight usage of `redis.call` invocations. Those may have suboptimal redis cluster routing and will raise errors. Instead, use the native call patterns.+ Example: `await redis?.call("SET", key, "1", "NX", "EX", TTLSeconds);` should use `await redis?.set(key, "1", "EX", TTLSeconds, "NX");` instead.diff --git a/packages/shared/src/server/otel/OtelIngestionProcessor.ts b/packages/shared/src/server/otel/OtelIngestionProcessor.tsindex 8a93b4a3ce..328dff2625 100644--- a/packages/shared/src/server/otel/OtelIngestionProcessor.ts+++ b/packages/shared/src/server/otel/OtelIngestionProcessor.ts@@ -1670,14 +1670,7 @@ export class OtelIngestionProcessor {[...traceIds].map(async (traceId) => {const key = `langfuse:project:${this.projectId}:trace:${traceId}:seen`;const TTLSeconds = 600; // 10 minutes- const result = await redis?.call(- "SET",- key,- "1",- "NX",- "EX",- TTLSeconds,- );+ const result = await redis?.set(key, "1", "EX", TTLSeconds, "NX");return {traceId: traceId,