anythingmcp icon indicating copy to clipboard operation
anythingmcp copied to clipboard

Per-tool latency histograms and error-rate view

Open helpcodeai opened this issue 1 month ago • 1 comments

Every tool call is already written to the audit log with duration and status, and there is a tool_invocations table behind the usage view. What is missing is the read side: a per-tool p50/p95/p99 and error rate over a time range, so an operator can see which connector is slow or failing without writing SQL.

Scope

  • Aggregate query over the existing invocation data — no new write path.
  • A view per MCP server and per connector: calls, error rate, p50/p95/p99, last error message.
  • Time range selector; default last 24 h.

Related: #990 (OpenTelemetry exporter) is the other half of this, for people who already have a metrics stack.

helpcodeai avatar Oct 10 '26 10:10 helpcodeai

Closing as completed by #1521, merged on 5 November. The implementation covers the requested calls/error-rate/last-error view, p50/p95/p99, connector and MCP-server filters, and the default 24-hour range using the existing invocation data. I also checked that the table and filters are present on current main.

The existing audit-deduplication limitation is documented in that PR; this closure does not imply exact per-request metrics beyond what the stored audit history supports. Thanks for the implementation and review.

Coding-Professional avatar Nov 10 '26 12:11 Coding-Professional