Package io.opentelemetry.api.metrics
Interface MeterProvider
@ThreadSafe
public interface MeterProvider
A registry for creating named
Meter
s.
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 Meter
Gets or creates a named Meter instance.meterBuilder
(String instrumentationScopeName) Creates a MeterBuilder for a named Meter instance.static MeterProvider
noop()
Returns a no-opMeterProvider
which 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-opMeterProvider
which provides meters which do not record or emit.
-