Back to Home
codeactual icon

fastmcp_otel_middleware

Verified Safe

by codeactual

Overview

Integrate OpenTelemetry tracing into FastMCP servers to propagate client trace context and generate server-side spans for tool invocations.

Installation

Run Command
No command provided

Environment Variables

  • FASTMCP_OTEL_MIDDLEWARE_DEBUG_LOG

Security Notes

The middleware primarily focuses on OpenTelemetry instrumentation and context propagation. It reads tracing headers from the `_meta` field and attaches attributes to spans. No direct code execution from user input or hardcoded secrets were identified. Debug logging can expose trace IDs/span IDs if enabled in a production environment, but this is a debug feature. Overall, it appears very safe as a library.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassLow
Avg Tokens100
Stars1
Forks0
Last Update2025-12-02

Tags

OpenTelemetryTracingFastMCPMiddlewarePython