Package io.opentelemetry.api.metrics
Interface ObservableLongUpDownCounter
- All Superinterfaces:
AutoCloseable
A reference to an observable metric registered with
LongUpDownCounterBuilder.buildWithCallback(Consumer)
.- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
Remove the callback registered viaLongUpDownCounterBuilder.buildWithCallback(Consumer)
.
-
Method Details
-
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:
close
in interfaceAutoCloseable
- Since:
- 1.12.0
-