From aca18332d149a3bab3c80fddebe774a4504c09b9 Mon Sep 17 00:00:00 2001 From: Marius Date: Mon, 15 Nov 2021 13:23:59 +0100 Subject: [PATCH] core: Add TODO for metrics work --- pkg/handler/metrics.go | 1 + 1 file changed, 1 insertion(+) 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)