core: Add TODO for metrics work

This commit is contained in:
Marius 2021-11-15 13:23:59 +01:00
parent b2273d4153
commit aca18332d1
1 changed files with 1 additions and 0 deletions

View File

@ -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. // incErrorsTotal increases the counter for this error atomically by one.
func (m Metrics) incErrorsTotal(err HTTPError) { func (m Metrics) incErrorsTotal(err HTTPError) {
ptr := m.ErrorsTotal.retrievePointerFor(err) ptr := m.ErrorsTotal.retrievePointerFor(err)