debian-mirror-gitlab/lib/gitlab/metrics/null_metric.rb
2019-02-13 22:33:31 +05:30

14 lines
259 B
Ruby

# frozen_string_literal: true
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