Top Description Methods
io.opentelemetry.api.metrics

public Interface MeterProvider

Known Direct Implementers
io.opentelemetry.api.metrics.DefaultMeterProvider
Annotations
@ThreadSafe
Imports
javax.annotation.concurrent.ThreadSafe

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
Meter

Method Summary

Modifier and TypeMethod and Description
public default Meter

Returns:

a Meter instance.
get
(String
A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
instrumentationScopeName
)

Gets or creates a named Meter instance.

public MeterBuilder

Returns:

a MeterBuilder instance.
meterBuilder
(String
A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
instrumentationScopeName
)

Creates a MeterBuilder for a named Meter instance.

public static MeterProvider
noop()

Returns a no-op MeterProvider which provides meters which do not record or emit.

Method Detail

getback to summary
public default Meter get(String instrumentationScopeName)

Gets or creates a named Meter instance.

Parameters
instrumentationScopeName:String

A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.

Returns:Meter

a Meter instance.

meterBuilderback to summary
public MeterBuilder meterBuilder(String instrumentationScopeName)

Creates a MeterBuilder for a named Meter instance.

Parameters
instrumentationScopeName:String

A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.

Returns:MeterBuilder

a MeterBuilder instance.

noopback to summary
public static MeterProvider noop()

Returns a no-op MeterProvider which provides meters which do not record or emit.