Agent-Hellboy / Agent-Hellboy/mcp-runtime
fix(mcp-gateway): count and log silently dropped audit events
Offen
bug
- Vorherrschende Sprache
- Go
- Sterne
- 6
- Forks
- 1
- Ø Merge
- 11 Std. 33 Min.
- Gemergte PRs (30 T.)
- 13
Beschreibung
## 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)
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.