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 mcp-agent (Model Context Protocol Agent). This integration automatically hooks into mcp-agent's telemetry.py system, capturing agent operations, tool calls, and workflow execution as AgentOps spans. It enriches spans with mcp_agent.* specific attributes for enhanced observability.

🧪 Testing A comprehensive unittest suite (test_integration.py) was created to validate the integration, including:

  • Verification of mcp_agent.* span attributes.
  • Testing of custom span context managers and decorators.
  • Error handling within instrumented spans.
  • Mocked tests for auto-hooking behavior. An example.py was also created to demonstrate usage.

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]