Skip to content

Fully qualify Gitlab::Metrics to avoid code reloading issues

Stan Hu requested to merge sh-fully-qualify-gitlab-metrics into master

What does this MR do and why?

Sidekiq jobs can fail with Error fetching job: uninitialized constant Gitlab::Metrics if code is reloaded. Work around this issue by adding :: before Gitlab::Metrics.

Relates to #211875 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports