agentops
agentops copied to clipboard
Integrate map-agent telemetry support
📥 Pull Request
📘 Description
Adds comprehensive integration support for map-agent, enabling automatic telemetry and observability via AgentOps. This includes:
- An
MapAgentInstrumentorto hook intomap-agent'stelemetry.pymodule. - Instrumentation for core
map-agentclasses and methods (e.g.,MapAgent,RouteCalculator) to capture navigation, location, and telemetry attributes as OpenTelemetry spans. - Configuration for automatic activation when
map-agentis detected. - A dedicated README for the integration and an example demonstrating usage with mock
map-agentcomponents.
🧪 Testing
- Unit tests (
tests/unit/instrumentation/agentic/map_agent/test_map_agent_instrumentor.py) were implemented to validate the instrumentor's core functionality, including telemetry function wrapping, class method instrumentation, attribute extraction, and error handling. - An example script (
examples/map_agent/map_agent_example.py) was created to demonstrate the integration's intended behavior and the structure of captured telemetry using mockmap-agentcomponents. - As the
map-agentpackage was not publicly available, testing was conducted against these mock implementations to ensure the integration framework is robust and ready for a realmap-agentdependency.
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