debian-mirror-gitlab/lib/gitlab/metrics/null_metric.rb
2018-03-17 18:26:18 +05:30

12 lines
228 B
Ruby

module Gitlab
module Metrics
# Mocks ::Prometheus::Client::Metric and all derived metrics
class NullMetric
include Singleton
def method_missing(name, *args, &block)
nil
end
end
end
end