gitlab-org--gitlab-foss/lib/gitlab/metrics/null_metric.rb
2018-01-29 15:13:04 +01:00

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