🪢 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
feat(otel): add support for observations of type 'event' (#6972)
Hassieb Pakzaddba114e4a3ab
diff --git a/web/src/features/otel/server/index.ts b/web/src/features/otel/server/index.tsindex 8e47ddd926..baaeb0024c 100644--- a/web/src/features/otel/server/index.ts+++ b/web/src/features/otel/server/index.ts@@ -762,9 +762,16 @@ export const convertOtelSpanToIngestionEvent = (("openinference.span.kind" in attributes &&attributes["openinference.span.kind"] === "LLM");+ const isEvent =+ attributes[LangfuseOtelSpanAttributes.OBSERVATION_TYPE] === "event";+events.push({id: randomUUID(),- type: isGeneration ? "generation-create" : "span-create",+ type: isGeneration+ ? "generation-create"+ : isEvent+ ? "event-create"+ : "span-create",timestamp: new Date().toISOString(),body: observation,});