🪢 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(otel): trace update events on present metadata (#7648)
Hassieb Pakzad07e1d4e9602e
diff --git a/web/src/features/otel/server/OtelIngestionProcessor.ts b/web/src/features/otel/server/OtelIngestionProcessor.tsindex 04728d816e..c5f9706ebe 100644--- a/web/src/features/otel/server/OtelIngestionProcessor.ts+++ b/web/src/features/otel/server/OtelIngestionProcessor.ts@@ -619,7 +619,7 @@ export class OtelIngestionProcessor {}private hasTraceUpdates(attributes: Record<string, unknown>): boolean {- return [+ const hasExactMatchingAttributeName = [LangfuseOtelSpanAttributes.TRACE_NAME,LangfuseOtelSpanAttributes.TRACE_INPUT,LangfuseOtelSpanAttributes.TRACE_OUTPUT,@@ -637,6 +637,13 @@ export class OtelIngestionProcessor {`${LangfuseOtelSpanAttributes.TRACE_METADATA}.langfuse_user_id`,`${LangfuseOtelSpanAttributes.TRACE_METADATA}.langfuse_tags`,].some((traceAttribute) => Boolean(attributes[traceAttribute]));++ const attributeKeys = Object.keys(attributes);+ const hasTraceMetadataKey = attributeKeys.some((key) =>+ key.startsWith(LangfuseOtelSpanAttributes.TRACE_METADATA),+ );++ return hasExactMatchingAttributeName || hasTraceMetadataKey;}private extractResourceAttributes(