AttributeError: ‘CallToolResult’ object has no attribute ‘get’ inside set_attributes. The exception is caught (logged as “OpenTelemetry logging error in set_attributes”), so the span is still emit

这个报错通常出现在 LiteLLM Proxy 开启 callbacks: ["otel"] 并对 MCP 工具调用( tools/call 或 tools/list )做追踪时: set_attributes 对 response_obj 直接调用 .get() ,但实际对象是 Pydantic








