🪢 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
test(otel): add test for completion start time parsing (#9456)
Hassieb Pakzada1e7867a3561
diff --git a/web/src/__tests__/server/api/otel/otelMapping.servertest.ts b/web/src/__tests__/server/api/otel/otelMapping.servertest.tsindex 14b5180034..6e2822ff50 100644--- a/web/src/__tests__/server/api/otel/otelMapping.servertest.ts+++ b/web/src/__tests__/server/api/otel/otelMapping.servertest.ts@@ -1537,6 +1537,30 @@ describe("OTel Resource Span Mapping", () => {entityAttributeValue: "2025-09-17T22:16:28.152000+02:00",},],+ [+ "should handle non-stringified completion start time correctly",+ {+ entity: "observation",+ otelAttributeKey: "langfuse.observation.completion_start_time",+ otelAttributeValue: {+ stringValue: "2025-10-01T08:45:26.112648Z",+ },+ entityAttributeKey: "completionStartTime",+ entityAttributeValue: "2025-10-01T08:45:26.112648Z",+ },+ ],+ [+ "should handle double-stringified completion start time correctly",+ {+ entity: "observation",+ otelAttributeKey: "langfuse.observation.completion_start_time",+ otelAttributeValue: {+ stringValue: '"2025-10-01T08:45:26.112648Z"',+ },+ entityAttributeKey: "completionStartTime",+ entityAttributeValue: "2025-10-01T08:45:26.112648Z",+ },+ ],["should cast input_tokens from string to number",{