Fix trace rate metric by using a correct interface
What does this MR do?
In !42359 (merged) we shipped a new metric - gitlab_ci_trace_bytes_total
total amount of trace bytes processed by GitLab CI - a trace rate.
In order to increment this metric by more than 1 at once, we used an interfaced described in the recent version of prometheus/client_ruby
gem. It appears that we have forked this gem, and despite the interface being changed more than 2 years ago we are still using a custom and incompatible version:
- The new interface: https://github.com/prometheus/client_ruby/blame/master/lib/prometheus/client/counter.rb#L13
- Interface used at GitLab: https://gitlab.com/gitlab-org/prometheus-client-mmap/-/blob/master/lib/prometheus/client/counter.rb#L13
This merge request fixes this bug.
Conformity
Edited by Grzegorz Bizon