fastmcp/docs/development
Jeremiah Lowin a04f6fd911
Add telemetry off-switch and mcp.protocol.version span attribute (#4481)
* Turn OpenTelemetry instrumentation on by default with explicit off-switch

Add FASTMCP_ENABLE_TELEMETRY setting (default true) and mcp.protocol.version
span attribute for SDK parity.

* Make disabled telemetry a transparent pass-through, not a NoOpTracer

The stock NoOpTracer.start_as_current_span attaches a NonRecordingSpan, hijacking the current OTel context from any enclosing application span. When telemetry is disabled, get_tracer() now returns a non-attaching pass-through tracer so trace.get_current_span() inside handlers still resolves to the caller's span.
2026-07-17 17:02:48 -04:00
..
v3-notes Remove deprecated fastmcp.server.apps / server.app shims (3.2) 2026-07-07 07:53:10 -04:00
v4-notes Add telemetry off-switch and mcp.protocol.version span attribute (#4481) 2026-07-17 17:02:48 -04:00
contributing.mdx Normalize repo references to PrefectHQ/fastmcp casing (#3218) 2026-02-18 14:51:18 -05:00
releases.mdx Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
tests.mdx Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00