Class DoubleLastValueAggregator

java.lang.Object
io.opentelemetry.sdk.metrics.internal.aggregator.DoubleLastValueAggregator
All Implemented Interfaces:
Aggregator<DoublePointData,DoubleExemplarData>

@ThreadSafe public final class DoubleLastValueAggregator extends Object implements Aggregator<DoublePointData,DoubleExemplarData>
Aggregator that aggregates recorded values by storing the last recorded value.

Limitation: The current implementation does not store a time when the value was recorded, so merging multiple LastValueAggregators will not preserve the ordering of records. This is not a problem because LastValueAggregator is currently only available for Observers which record all values once.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.