Class: OpenTelemetry::Metrics::MeterProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/opentelemetry/metrics/meter_provider.rb

Overview

No-op implementation of a meter provider.

Direct Known Subclasses

Internal::ProxyMeterProvider

Instance Method Summary collapse

Instance Method Details

#meter(name, version: nil) ⇒ Meter

Returns a OpenTelemetry::Metrics::Meter instance.

Parameters:

  • name (String)

    Instrumentation package name

  • version (optional String) (defaults to: nil)

    Instrumentation package version

Returns:



17
18
19
# File 'lib/opentelemetry/metrics/meter_provider.rb', line 17

def meter(name, version: nil)
  @meter ||= Meter.new
end