lib/opentelemetry/sdk/metrics/meter.rb in opentelemetry-metrics-sdk-0.1.0 vs lib/opentelemetry/sdk/metrics/meter.rb in opentelemetry-metrics-sdk-0.2.0
- old
+ new
@@ -26,10 +26,10 @@
@meter_provider = meter_provider
end
# @api private
def add_metric_reader(metric_reader)
- @instrument_registry.each do |_n, instrument|
+ @instrument_registry.each_value do |instrument|
instrument.register_with_new_metric_store(metric_reader.metric_store)
end
end
def create_instrument(kind, name, unit, description, callback)