debian-mirror-gitlab/lib/gitlab/metrics/null_metric.rb
2019-02-15 15:39:39 +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