🪢 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): preferential parsing of environment key from span attributes (#9432)
Hassieb Pakzadaa5b5fb8a9c1
diff --git a/packages/shared/src/server/otel/OtelIngestionProcessor.ts b/packages/shared/src/server/otel/OtelIngestionProcessor.tsindex f40ebaa933..ff8d0ced9a 100644--- a/packages/shared/src/server/otel/OtelIngestionProcessor.ts+++ b/packages/shared/src/server/otel/OtelIngestionProcessor.ts@@ -1131,12 +1131,12 @@ export class OtelIngestionProcessor {];for (const key of environmentAttributeKeys) {- if (resourceAttributes[key]) {- return resourceAttributes[key] as string;- }if (attributes[key]) {return attributes[key] as string;}+ if (resourceAttributes[key]) {+ return resourceAttributes[key] as string;+ }}return "default";