Package io.opentelemetry.api.metrics
Interface MeterProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Meter
get(String instrumentationName)
Gets or creates a named meter instance.Meter
get(String instrumentationName, String instrumentationVersion)
Gets or creates a named and versioned meter instance.default MeterBuilder
meterBuilder(String instrumentationName)
Creates a MeterBuilder for a named meter instance.static MeterProvider
noop()
Returns aMeterProvider
that only creates no-opInstrument
s that neither record nor are emitted.
-
-
-
Method Detail
-
noop
static MeterProvider noop()
Returns aMeterProvider
that only creates no-opInstrument
s that neither record nor are emitted.
-
get
Meter get(String instrumentationName)
Gets or creates a named meter instance.- Parameters:
instrumentationName
- The name of the instrumentation library, not the name of the instrument*ed* library.- Returns:
- a tracer instance.
-
get
Meter get(String instrumentationName, String instrumentationVersion)
Gets or creates a named and versioned meter instance.- Parameters:
instrumentationName
- The name of the instrumentation library, not the name of the instrument*ed* library.instrumentationVersion
- The version of the instrumentation library.- Returns:
- a tracer instance.
-
meterBuilder
default MeterBuilder meterBuilder(String instrumentationName)
Creates a MeterBuilder for a named meter instance.- Parameters:
instrumentationName
- The name of the instrumentation library, not the name of the instrument*ed* library.- Returns:
- a MeterBuilder instance.
- Since:
- 1.4.0
-
-