Package io.opentelemetry.api.metrics
Interface ObservableLongCounter
- All Superinterfaces:
AutoCloseable
A reference to an observable instrument registered with
LongCounterBuilder.buildWithCallback(Consumer).- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Remove the callback registered viaLongCounterBuilder.buildWithCallback(Consumer).
-
Method Details
-
close
default void close()Remove the callback registered viaLongCounterBuilder.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:
closein interfaceAutoCloseable- Since:
- 1.12.0
-