Package io.opentelemetry.api.metrics
Interface MeterProvider
-
@ThreadSafe public interface MeterProviderA registry for creating namedMeters. The name Provider is for consistency with other languages and it is NOT loaded using reflection.- See Also:
OpenTelemetry,Meter
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Meterget(java.lang.String instrumentationName)Gets or creates a named meter instance.Meterget(java.lang.String instrumentationName, java.lang.String instrumentationVersion)Gets or creates a named and versioned meter instance.static MeterProvidergetDefault()Returns aMeterProviderthat only creates no-opInstruments that neither record nor are emitted.
-
-
-
Method Detail
-
getDefault
static MeterProvider getDefault()
Returns aMeterProviderthat only creates no-opInstruments that neither record nor are emitted.
-
get
Meter get(java.lang.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(java.lang.String instrumentationName, java.lang.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.
-
-