Skip to content

Observability: expose Prometheus /metrics and wire error tracking #105

Description

@rubenhensen

Problem

There is no metrics endpoint and no error tracker. Combined with the current lack of structured logging (#96) and readiness checks (#97), there is no way to alert on error-rate spikes, latency regressions, or DB/IRMA failures — problems are only visible by reading container stdout after the fact.

Why it matters

  • Metrics enable dashboards + alerting: request rate, latency, error rate, DB pool saturation.
  • An error tracker captures stack traces + release context for unhandled exceptions, instead of losing them to stdout.

Proposal

Acceptance criteria

  • /metrics serves Prometheus metrics including HTTP request duration + error counters.
  • Unhandled server errors are reported to the tracker with stack + release tag.
  • /metrics access is restricted and documented.

Related

Complements #96 (structured logging) and #97 (readiness probe).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions