Package io.opentelemetry.api.metrics
Interface ObservableLongGauge
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
SdkObservableInstrument
public interface ObservableLongGauge extends java.lang.AutoCloseable
A reference to an observable instrument registered withLongGaugeBuilder.buildWithCallback(Consumer)
.- Since:
- 1.10.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
close()
Remove the callback registered viaLongGaugeBuilder.buildWithCallback(Consumer)
.
-
-
-
Method Detail
-
close
default void close()
Remove the callback registered viaLongGaugeBuilder.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 instrument with the same identity are unaffected.
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Since:
- 1.12.0
-
-