🪢 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: also track langfuse SDK req headers with underscores on span (#2972)
Max Deichmann518b8df2da2a
diff --git a/web/src/pages/api/public/ingestion.ts b/web/src/pages/api/public/ingestion.tsindex 7ee72c68e0..83f585a61b 100644--- a/web/src/pages/api/public/ingestion.ts+++ b/web/src/pages/api/public/ingestion.ts@@ -97,7 +97,11 @@ export default async function handler(// get x-langfuse-xxx headers and add them to the spanObject.keys(req.headers).forEach((header) => {- if (header.toLowerCase().startsWith("x-langfuse")) {+ if (+ header.toLowerCase().startsWith("x-langfuse") ||+ header.toLowerCase().startsWith("x_langfuse")+ ) {+ console.log("headers", header);currentSpan?.setAttributes({[header]: req.headers[header],});