Package io.opentelemetry.api.metrics
Interface ObservableDoubleCounter
- All Superinterfaces:
AutoCloseable
A reference to an observable metric registered with
DoubleCounterBuilder.buildWithCallback(Consumer).-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Remove the callback registered viaDoubleCounterBuilder.buildWithCallback(Consumer).
-
Method Details
-
close
default void close()Remove the callback registered viaDoubleCounterBuilder.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 interfaceAutoCloseable
-