Welcome to mirror list, hosted at ThFree Co, Russian Federation.

null_metric.rb « metrics « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b5a2907195829ba965403b6ef64b15011b8eb45 (plain)
1
2
3
4
5
6
7
8
9
10
module Gitlab
  module Metrics
    # Mocks ::Prometheus::Client::Metric and all derived metrics
    class NullMetric
      def method_missing(name, *args, &block)
        nil
      end
    end
  end
end