get_traces_overview
Analyze distributed traces across applications to monitor trace volume, error rates, latency percentiles, and service dependencies for enhanced performance insights.
Instructions
Get distributed tracing overview.
Returns a summary of distributed traces across all applications:
Trace volume and trends
Error rates
Latency percentiles
Service dependencies
Args: project_id: Project ID query: Search/filter query (optional)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| query | No |
Implementation Reference
- src/mcp_coroot/server.py:469-486 (handler)MCP tool handler function decorated with @mcp.tool() that handles the get_traces_overview tool execution by calling the implementation helper.@mcp.tool() async def get_traces_overview( project_id: str, query: str | None = None, ) -> dict[str, Any]: """Get distributed tracing overview. Returns a summary of distributed traces across all applications: - Trace volume and trends - Error rates - Latency percentiles - Service dependencies Args: project_id: Project ID query: Search/filter query (optional) """ return await get_traces_overview_impl(project_id, query) # type: ignore[no-any-return]
- src/mcp_coroot/server.py:456-466 (helper)Helper implementation function that acquires the CorootClient and calls its get_traces_overview method.@handle_errors async def get_traces_overview_impl( project_id: str, query: str | None = None, ) -> dict[str, Any]: """Get traces overview.""" overview = await get_client().get_traces_overview(project_id, query) return { "success": True, "overview": overview, }
- src/mcp_coroot/client.py:520-544 (helper)CorootClient.get_traces_overview method that performs the actual HTTP GET request to the Coroot API endpoint /api/project/{project_id}/overview/traces and returns the JSON response.async def get_traces_overview( self, project_id: str, query: str | None = None, ) -> dict[str, Any]: """Get distributed tracing overview. Args: project_id: Project ID. query: Search/filter query. Returns: Traces overview data. """ params = {} if query: params["query"] = query response = await self._request( "GET", f"/api/project/{project_id}/overview/traces", params=params, ) data: dict[str, Any] = response.json() return data