Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(otel): parse public attribute for traces (#8049)

Hassieb Pakzad5af8c4e40093
diff --git a/web/src/features/otel/server/OtelIngestionProcessor.ts b/web/src/features/otel/server/OtelIngestionProcessor.ts
index ae10d52326..2bda370de1 100644
--- a/web/src/features/otel/server/OtelIngestionProcessor.ts
+++ b/web/src/features/otel/server/OtelIngestionProcessor.ts
@@ -481,7 +481,8 @@ export class OtelIngestionProcessor {
attributes?.[LangfuseOtelSpanAttributes.TRACE_PUBLIC] === true ||
attributes?.[LangfuseOtelSpanAttributes.TRACE_PUBLIC] === "true" ||
attributes?.["langfuse.public"] === true ||
- attributes?.["langfuse.public"] === "true",
+ attributes?.["langfuse.public"] === "true" ||
+ undefined,
tags: this.extractTags(attributes),
environment: this.extractEnvironment(attributes, resourceAttributes),
...this.extractInputAndOutput(span?.events ?? [], attributes, "trace"),
@@ -518,7 +519,8 @@ export class OtelIngestionProcessor {
attributes?.[LangfuseOtelSpanAttributes.TRACE_PUBLIC] === true ||
attributes?.[LangfuseOtelSpanAttributes.TRACE_PUBLIC] === "true" ||
attributes?.["langfuse.public"] === true ||
- attributes?.["langfuse.public"] === "true",
+ attributes?.["langfuse.public"] === "true" ||
+ undefined,
tags: this.extractTags(attributes),
environment: this.extractEnvironment(attributes, resourceAttributes),
input: attributes[LangfuseOtelSpanAttributes.TRACE_INPUT],