Top Description Methods
io.opentelemetry.api.metrics

public Interface ObservableLongCounter

extends AutoCloseable
Imports
java.util.function.Consumer

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

Method Summary

Modifier and TypeMethod and Description
public default void

Method Detail

closeback to summary
public default void close()

Implements java.lang.AutoCloseable.close.

Remove the callback registered via LongCounterBuilder#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