mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
* 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. |
||
|---|---|---|
| .. | ||
| faq.mdx | ||
| settings.mdx | ||