agentops icon indicating copy to clipboard operation
agentops copied to clipboard

Integrate map-agent telemetry support

Open areibman opened this issue 4 months ago • 1 comments

📥 Pull Request

📘 Description Adds integration support for the mcp-agent framework. This is achieved by:

  • Registering mcp_agent as a new agentic library in agentops/instrumentation/__init__.py.
  • Creating a new integration package agentops/instrumentation/agentic/mcp_agent containing an instrumentor.
  • The instrumentor patches mcp_agent.tracing.telemetry.get_tracer to ensure that spans generated by mcp-agent are routed through the AgentOps global tracer provider, enabling AgentOps to capture these traces.
  • Requires mcp-agent >= 0.1.13.

🧪 Testing Verified by running mcp-agent examples and confirming that traces were successfully captured and reported by AgentOps.


Open in Cursor Open in Web

areibman avatar Aug 16 '25 19:08 areibman

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

cursor[bot] avatar Aug 16 '25 19:08 cursor[bot]