Skip to content

feat: Observability (metrics, tracing, request correlation)#28

Open
xernobyl wants to merge 13 commits intomainfrom
feat/observability
Open

feat: Observability (metrics, tracing, request correlation)#28
xernobyl wants to merge 13 commits intomainfrom
feat/observability

Conversation

@xernobyl
Copy link
Contributor

Observability

  • Metrics: Prometheus at GET /metrics when OTEL_METRICS_EXPORTER=prometheus. Hub metrics: event pipeline (discarded events, channel depth, fan-out duration), webhook delivery (enqueued, deliveries by status, duration histograms, disabled counts), River queue depth. HTTP metrics via otelhttp.
  • Tracing: Optional OTLP or stdout when OTEL_TRACES_EXPORTER is set. HTTP spans via otelhttp; trace context (trace_id, span_id) and request_id added to structured logs when using *Context slog methods.
  • Request correlation: X-Request-ID middleware (propagate or generate UUID v7, echo in response).
  • Docs: New Metrics and Observability, env var reference for OTEL_*, suggested alerts and practices.

Metrics and tracing are opt-in; if env vars are unset, a startup warning is logged and /metrics is not registered.

Other

  • README and auth docs: removed references to todo.md for OpenAPI.

@xernobyl xernobyl marked this pull request as ready for review February 13, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant