Skip to content

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

chore: normalize ingestion span attributes (#3710)

Steffen Schmitz194f2f61f5c5
diff --git a/web/src/pages/api/public/ingestion.ts b/web/src/pages/api/public/ingestion.ts
index a87d6c5435..9d243e7870 100644
--- a/web/src/pages/api/public/ingestion.ts
+++ b/web/src/pages/api/public/ingestion.ts
@@ -100,7 +100,7 @@ export default async function handler(
header.toLowerCase().startsWith("x_langfuse")
) {
currentSpan?.setAttributes({
- [`langfuse.header.${header.slice(10).toLowerCase()}`]:
+ [`langfuse.header.${header.slice(11).toLowerCase().replaceAll("_", "-")}`]:
req.headers[header],
});
}