agentops
agentops copied to clipboard
Integrate map-agent telemetry support
📥 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.pywas also created to demonstrate usage.
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