debian-mirror-gitlab/lib/gitlab/metrics/null_metric.rb
2018-12-23 12:14:25 +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