Skip to content

Fix trace rate metric by using a correct interface

Grzegorz Bizon requested to merge fix/gb/fix-trace-rate-metric into master

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:

This merge request fixes this bug.

Conformity

Edited by Grzegorz Bizon

Merge request reports