🪢 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
chore(worker): add metric counting score ingestion updates (#14887)
Niklas Semmler4a257a5b4a19
diff --git a/worker/src/services/IngestionService/index.ts b/worker/src/services/IngestionService/index.tsindex 64332fab9f..6a1f7970ff 100644--- a/worker/src/services/IngestionService/index.ts+++ b/worker/src/services/IngestionService/index.ts@@ -632,6 +632,17 @@ export class IngestionService {return;}+ // Update = merging new events with a pre-existing record, found either in+ // ClickHouse or as earlier event-log files for the same score id.+ if (+ scoreRecords.length > 0 &&+ (clickhouseScoreRecord || scoreRecords.length > 1)+ ) {+ recordIncrement("langfuse.ingestion.score_update", 1, {+ store: clickhouseScoreRecord ? "clickhouse" : "event_log",+ });+ }+const finalScoreRecord: ScoreRecordInsertType =await this.mergeScoreRecords({clickhouseScoreRecord,