lib/opentelemetry/internal/proxy_meter.rb in opentelemetry-metrics-api-0.1.1 vs lib/opentelemetry/internal/proxy_meter.rb in opentelemetry-metrics-api-0.2.0
- old
+ new
@@ -43,9 +43,10 @@
next ProxyInstrument.new(kind, name, unit, description, callback) if @delegate.nil?
case kind
when :counter then @delegate.create_counter(name, unit: unit, description: description)
when :histogram then @delegate.create_histogram(name, unit: unit, description: description)
+ when :gauge then @delegate.create_gauge(name, unit: unit, description: description)
when :up_down_counter then @delegate.create_up_down_counter(name, unit: unit, description: description)
when :observable_counter then @delegate.create_observable_counter(name, unit: unit, description: description, callback: callback)
when :observable_gauge then @delegate.create_observable_gauge(name, unit: unit, description: description, callback: callback)
when :observable_up_down_counter then @delegate.create_observable_up_down_counter(name, unit: unit, description: description, callback: callback)
end