lib/fluent/plugin/monitoring.rb in fluent-plugin-google-cloud-0.7.25 vs lib/fluent/plugin/monitoring.rb in fluent-plugin-google-cloud-0.7.26

- old
+ new

@@ -13,12 +13,11 @@ # limitations under the License. module Monitoring # Base class for the counter. class BaseCounter - def increment(_by: 1, _labels: {}) - nil + def increment(*) end end # Prometheus implementation of counters. class PrometheusCounter < BaseCounter @@ -52,10 +51,10 @@ class BaseMonitoringRegistry def initialize(_project_id, _monitored_resource) end def counter(_name, _labels, _docstring) - nil + BaseCounter.new end def export nil end