fastmcp/tests
Chris Guidry eaf2906916 Adopt OpenTelemetry MCP semantic conventions
Updates FastMCP's telemetry to align with the new MCP semantic conventions
from open-telemetry/semantic-conventions#2083. This gives us interoperability
with other MCP implementations while keeping fastmcp.* attributes for things
unique to our framework.

Changes:
- Span names now follow `{method} {target}` format (e.g., `tools/call greet`)
- Added `mcp.method.name` and `mcp.resource.uri` attributes
- Renamed `fastmcp.session.id` to standard `mcp.session.id`
- Kept fastmcp.* attributes for server name, component info, provider details

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 14:08:15 -05:00
..
cli Add loq file size limits and clean up type ignores (#2859) 2026-01-13 07:29:12 -05:00
client Adopt OpenTelemetry MCP semantic conventions 2026-01-15 14:08:15 -05:00
contrib Consolidate execution method chains into single public API (#2728) 2025-12-25 10:38:12 -05:00
deprecated Add transform system for modifying components in provider chains (#2836) 2026-01-12 22:11:16 -05:00
experimental Unify SamplingHandler and promote OpenAI handler (#2616) 2025-12-14 15:22:43 -05:00
fs Add standalone decorators and eliminate fastmcp.fs module (#2832) 2026-01-10 12:16:35 -05:00
integration_tests Fix HTTP transport timeout defaulting to 5 seconds (#2849) 2026-01-12 14:47:21 -05:00
prompts Run sync tools/resources/prompts in threadpool automatically (#2865) 2026-01-13 11:03:05 -05:00
resources Run sync tools/resources/prompts in threadpool automatically (#2865) 2026-01-13 11:03:05 -05:00
server Adopt OpenTelemetry MCP semantic conventions 2026-01-15 14:08:15 -05:00
telemetry Address Jeremiah's telemetry feedback 2026-01-14 09:45:41 -05:00
tools Add timeout parameter for tool foreground execution (#2872) 2026-01-13 21:05:34 -05:00
utilities Add loq file size limits and clean up type ignores (#2859) 2026-01-13 07:29:12 -05:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Add OpenTelemetry tracing support 2026-01-14 09:45:41 -05:00
test_mcp_config.py Fix test_multi_client_with_logging to filter OpenTelemetry logs 2026-01-14 09:45:41 -05:00