Integrate map-agent telemetry support
📥 Pull Request
📘 Description
Adds integration support for mcp-agent (lastmile-ai/mcp-agent). This integration leverages mcp-agent's existing OpenTelemetry spans, routing them through AgentOps' exporter. A new instrumentor is added to auto-detect mcp-agent as an agentic library, preventing duplicate instrumentation from other provider-level instrumentors.
🧪 Testing
Verified mcp-agent's telemetry.py emits OTEL spans. Confirmed the new instrumentor correctly registers mcp-agent as an agentic library, allowing its telemetry to flow through AgentOps without double-instrumentation. The external/mcp-agent submodule was added for local verification.
Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents