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: 7dbd2a1f8e3f7a14061f27d66c2b6aa51d64c92b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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