lib/sidekiq_prometheus/metrics.rb in sidekiq_prometheus-1.3.0 vs lib/sidekiq_prometheus/metrics.rb in sidekiq_prometheus-1.4.0

- old
+ new

@@ -105,11 +105,11 @@ def register_sidekiq_job_metrics register_metrics SIDEKIQ_JOB_METRICS end def register_sidekiq_gc_metric - register SIDEKIQ_GC_METRIC + register(**SIDEKIQ_GC_METRIC) end def register_sidekiq_worker_gc_metrics register_metrics SIDEKIQ_WORKER_GC_METRICS end @@ -118,11 +118,11 @@ register_metrics SIDEKIQ_GLOBAL_METRICS end def register_metrics(metrics) metrics.each do |metric| - register(metric) + register(**metric) end end ## # Fetch a metric from the registry @@ -157,10 +157,10 @@ labels: all_labels, preset_labels: all_preset_labels, } options[:buckets] = buckets if buckets - registry.send(type, name.to_sym, options) + registry.send(type, name.to_sym, **options) end def unregister(name:) registry.unregister(name.to_sym) end