Agent-Hellboy / Agent-Hellboy/mcp-runtime

fix(mcp-gateway): count and log silently dropped audit events

未關閉
#303 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。