Top Description Inners Fields Constructors Methods
io.opentelemetry.api.metrics

pack-priv Class DefaultMeter

extends Object
implements Meter
Class Inheritance
All Implemented Interfaces
io.opentelemetry.api.metrics.Meter
Annotations
@ThreadSafe
Imports
io.opentelemetry.api.common.Attributes, io.opentelemetry.context.Context, java.util.function.Consumer, javax.annotation.concurrent.ThreadSafe

No-op implementation of Meter.

This implementation should induce as close to zero overhead as possible.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final Meter
private static final BatchCallback
private static final DoubleGaugeBuilder
private static final DoubleHistogramBuilder
private static final LongCounterBuilder
private static final LongUpDownCounterBuilder
private static final ObservableDoubleMeasurement
private static final ObservableLongMeasurement

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public BatchCallback
batchCallback(Runnable
a callback used to observe values on-demand.
callback
,
ObservableMeasurement
Instruments for which the callback may observe values.
observableMeasurement
,
ObservableMeasurement...
Instruments for which the callback may observe values.
additionalMeasurements
)

Overrides default io.opentelemetry.api.metrics.Meter.batchCallback.

Constructs a batch callback.

public LongCounterBuilder
counterBuilder(String
the name of the Counter. Instrument names must consist of 255 or fewer characters including alphanumeric, _, ., -, /, and start with a letter.
name
)

Implements io.opentelemetry.api.metrics.Meter.counterBuilder.

Constructs a Counter instrument.

public DoubleGaugeBuilder
gaugeBuilder(String
the name of the Gauge. Instrument names must consist of 255 or fewer characters including alphanumeric, _, ., -, /, and start with a letter.
name
)

Implements io.opentelemetry.api.metrics.Meter.gaugeBuilder.

Constructs an Asynchronous Gauge instrument.

pack-priv static Meter
public DoubleHistogramBuilder
histogramBuilder(String
the name of the Histogram. Instrument names must consist of 255 or fewer characters including alphanumeric, _, ., -, /, and start with a letter.
name
)

Implements io.opentelemetry.api.metrics.Meter.histogramBuilder.

Constructs a Histogram instrument.

public LongUpDownCounterBuilder
upDownCounterBuilder(String
the name of the UpDownCounter. Instrument names must consist of 255 or fewer characters including alphanumeric, _, ., -, /, and start with a letter.
name
)

Implements io.opentelemetry.api.metrics.Meter.upDownCounterBuilder.

Constructs an UpDownCounter instrument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait