Package io.opentelemetry.api.metrics
Interface ObservableLongUpDownCounter
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
SdkObservableInstrument
public interface ObservableLongUpDownCounter extends java.lang.AutoCloseableA reference to an observable metric registered withLongUpDownCounterBuilder.buildWithCallback(Consumer).- Since:
- 1.10.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidclose()Remove the callback registered viaLongUpDownCounterBuilder.buildWithCallback(Consumer).
-
-
-
Method Detail
-
close
default void close()
Remove the callback registered viaLongUpDownCounterBuilder.buildWithCallback(Consumer). After this is called, the callback won't be invoked on future collections. Subsequent calls toclose()have no effect.Note: other callbacks registered to the metric with the same identity are unaffected.
- Specified by:
closein interfacejava.lang.AutoCloseable- Since:
- 1.12.0
-
-