Standard OTel showed 7 failures — there were 18: what MCP tracing misses

airesearch12 · x · 2026-10-02

MCP tools typically return errors as isError: true inside a successful JSON-RPC response — the transport says 200 OK, so standard OpenTelemetry records a clean green span while the agent is actually receiving permissiondenied, notfound, or validationerror. The author's library opentel-mcp catches these; its new release ships a local dashboard runnable with one command (npx opentel-mcp-ui --demo, no Prometheus/Grafana/Collector needed) showing how many failures standard OTel misses (11 of 18 in demo data) with side-by-side comparisons.

The library provides spans for tools/call and tools/list aligned with OTel MCP semantic conventions, 12 metrics (silent failures, errors, duration, tokens, cost, agent thrash, schema drift), error fingerprinting/classification, support for MCP SDK v1/v2 over stdio and HTTP, and it never throws into your server. Limits: server-side only, tools but not resources/prompts, cost tracking needs tools to report token usage.

Related event: Standard OpenTelemetry Misses Silent MCP Tool Failures(2 posts)→

Original post →

More from coding & agent

coding & agent channel →