Top Description Methods
io.opentelemetry.api.metrics

public Interface ObservableLongGauge

extends AutoCloseable
Imports
java.util.function.Consumer

A reference to an observable instrument registered with LongGaugeBuilder#buildWithCallback(Consumer).
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public default void
close()

Implements java.lang.AutoCloseable.close.

Remove the callback registered via LongGaugeBuilder#buildWithCallback(Consumer).

Method Detail

closeback to summary
public default void close()

Implements java.lang.AutoCloseable.close.

Remove the callback registered via LongGaugeBuilder#buildWithCallback(Consumer). After this is called, the callback won't be invoked on future collections. Subsequent calls to close() have no effect.

Note

other callbacks registered to the instrument with the same identity are unaffected.

Annotations
@Override
Since
1.12.0