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 comprehensive integration support for MCP Agent, enabling seamless telemetry collection and observability for MCP-based agent workflows. This integration hooks into MCP Agent's existing OpenTelemetry infrastructure and extends it with AgentOps-specific tracking and metrics for tool calls, workflows, and agent executions.

🧪 Testing New integration tests (tests/integration/test_mcp_agent_integration.py) were added to validate:

  • Correct initialization and instrumentation of the MCPAgentInstrumentor.
  • Proper wrapping of TelemetryManager.traced and TracingConfig.configure.
  • Functionality of wrappers for tool calls, workflows, and agent executions, including span creation and attribute setting.
  • Configuration options for data capture, filtering, and truncation.

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]