Agent-Hellboy / Agent-Hellboy/mcp-runtime

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

Abierto
#303 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Go
Estrellas
6
Forks
1
Merge medio
11 h 33 min
PR fusionados (30 d)
13

Descripción

## 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)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.