Loading connector details…
Loading connector details…
Choose a unique username to continue using AgentHotspot
by codeactual • Uncategorized
Middleware to integrate OpenTelemetry tracing into FastMCP servers using MCP _meta propagation.
Propagate OpenTelemetry tracing context through MCP _meta fields.
Automatically create server spans for FastMCP tool invocations.
Enriched trace data with tool names, call IDs, and optional arguments.
This middleware enables FastMCP servers to extract OpenTelemetry context from MCP _meta fields and automatically create server spans for tool invocations. It enriches traces with tool names, call IDs, namespaces, and optionally tool arguments, improving observability and traceability. The package supports compatibility with multiple FastMCP versions and offers customization options including Langfuse-compatible metadata. It simplifies distributed tracing for FastMCP applications by leveraging the Model Context Protocol's propagation standards.