diff --git a/pkg/handler/metrics.go b/pkg/handler/metrics.go index 6f0989d..699086e 100644 --- a/pkg/handler/metrics.go +++ b/pkg/handler/metrics.go @@ -29,6 +29,7 @@ func (m Metrics) incRequestsTotal(method string) { } } +// TODO: Rework to only store error code // incErrorsTotal increases the counter for this error atomically by one. func (m Metrics) incErrorsTotal(err HTTPError) { ptr := m.ErrorsTotal.retrievePointerFor(err)