gitlab-org--gitlab-foss/lib/gitlab/metrics/null_metric.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
259 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Gitlab
module Metrics
# Mocks ::Prometheus::Client::Metric and all derived metrics
class NullMetric
2018-01-19 08:54:06 -05:00
include Singleton
def method_missing(name, *args, &block)
nil
end
end
end
end