Today logging is stdlib log to stdout. Nothing else.
Scope
- Structured logging (
zap or slog) with request IDs propagated via Gin middleware.
- Prometheus
/metrics endpoint (request count, latency histograms, Mongo round-trip times, Gemini call duration / failure rate).
- OpenTelemetry tracing — at least HTTP → Mongo → Gemini spans.
- Sample Grafana dashboard JSON checked into
docs/.
- Alerting recipes (error rate, p95 latency, Gemini quota approaching).
Effort: medium-large (4–5 days).
Today logging is stdlib
logto stdout. Nothing else.Scope
zaporslog) with request IDs propagated via Gin middleware./metricsendpoint (request count, latency histograms, Mongo round-trip times, Gemini call duration / failure rate).docs/.Effort: medium-large (4–5 days).