mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 13:21:55 +00:00
fix(langfuse): exclude http wrapper spans with empty mcp_method
This commit is contained in:
@@ -68,8 +68,8 @@ export function initializeLangfuseTransport(): void {
|
|||||||
// Only export tool-call spans, skip health checks and protocol noise
|
// Only export tool-call spans, skip health checks and protocol noise
|
||||||
shouldExportSpan: (span) => {
|
shouldExportSpan: (span) => {
|
||||||
const mcpMethod = span.otelSpan.attributes["mcp_method"];
|
const mcpMethod = span.otelSpan.attributes["mcp_method"];
|
||||||
if (mcpMethod === "tools/call") return true;
|
if (mcpMethod === undefined) return true;
|
||||||
return !mcpMethod;
|
return mcpMethod === "tools/call";
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user