Package io.opentelemetry.api.metrics
Interface MeterProvider
@ThreadSafe
public interface MeterProvider
A registry for creating named
Meters.
The name Provider is for consistency with other languages and it is NOT loaded using reflection.
- Since:
- 1.10.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault MeterGets or creates a named Meter instance.meterBuilder(String instrumentationScopeName) Creates a MeterBuilder for a named Meter instance.static MeterProvidernoop()Returns a no-opMeterProviderwhich provides meters which do not record or emit.
-
Method Details
-
get
Gets or creates a named Meter instance.- Parameters:
instrumentationScopeName- A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.- Returns:
- a Meter instance.
-
meterBuilder
Creates a MeterBuilder for a named Meter instance.- Parameters:
instrumentationScopeName- A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.- Returns:
- a MeterBuilder instance.
-
noop
Returns a no-opMeterProviderwhich provides meters which do not record or emit.
-