Agent-Hellboy / Agent-Hellboy/mcp-runtime
fix(mcp-gateway): count and log silently dropped audit events
未關閉
bug
- 主要語言
- Go
- 星號
- 6
- 分支
- 1
- 平均合併
- 11 小時 33 分鐘
- 30 天內合併 PR
- 13
描述
## Problem
When the analytics queue (size 256) is full, events are dropped silently at the `default:` branch in `analytics.go:85`. There is no counter, no log line — you cannot tell under production load whether audit coverage is complete.
## Fix
- Add a `mcp_gateway_analytics_drop_total` Prometheus counter
- Increment it and emit a `log.Printf("warn: audit event dropped")` in the `default:` branch
## Files
- `services/mcp-gateway/analytics.go`
- `services/mcp-gateway/metrics.go` (or new counter alongside #300)
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。