fastmcp/tests/server/telemetry
strawgate 21db5c6cc0
OTEL: Instrument list operations and add method to delegate spans
- Add server_span wrappers to list_tools, list_resources,
  list_resource_templates, and list_prompts in FastMCP server
- Add client_span wrappers to list_tools_mcp, list_resources_mcp,
  list_resource_templates_mcp, and list_prompts_mcp in client mixins
- Add optional `method` parameter to delegate_span in telemetry.py
  and set mcp.method.name on delegate spans
- Update all delegate_span callers in fastmcp_provider.py to pass
  the MCP method name (tools/call, resources/read, prompts/get)
- Add tests for new server list spans, client list spans, and
  delegate span method attributes

Refs: #3887

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 18:06:24 -05:00
..
__init__.py Add OpenTelemetry tracing support 2026-01-14 09:45:41 -05:00
test_delegate_method.py OTEL: Instrument list operations and add method to delegate spans 2026-04-14 18:06:24 -05:00
test_list_tracing.py OTEL: Instrument list operations and add method to delegate spans 2026-04-14 18:06:24 -05:00
test_provider_tracing.py Fix ty 0.0.17 diagnostics and bump lockfile 2026-02-16 16:13:38 -05:00
test_server_tracing.py OTEL: Fix attribute compliance with MCP semantic conventions (#3889) 2026-04-14 16:28:47 -04:00