Class DropAggregator
java.lang.Object
io.opentelemetry.sdk.metrics.internal.aggregator.DropAggregator
- All Implemented Interfaces:
Aggregator<PointData,DoubleExemplarData>
public final class DropAggregator
extends Object
implements Aggregator<PointData,DoubleExemplarData>
A "null object" Aggregator which denotes no aggregation should occur.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AggregatorHandle<PointData, DoubleExemplarData> static final Aggregator<PointData, DoubleExemplarData> private static final PointData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a newAggregatorHandle.toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, Collection<PointData> points, AggregationTemporality temporality) Returns theMetricDatathat thisAggregationwill produce.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.sdk.metrics.internal.aggregator.Aggregator
copyPoint, createReusablePoint, diff, diffInPlace, toPoint, toPoint
-
Field Details
-
POINT_DATA
-
INSTANCE
-
HANDLE
-
-
Constructor Details
-
DropAggregator
private DropAggregator()
-
-
Method Details
-
createHandle
Description copied from interface:AggregatorReturns a newAggregatorHandle. This MUST by used by the synchronous to aggregate recorded measurements during the collection cycle.- Specified by:
createHandlein interfaceAggregator<PointData,DoubleExemplarData> - Returns:
- a new
AggregatorHandle.
-
toMetricData
public MetricData toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, Collection<PointData> points, AggregationTemporality temporality) Description copied from interface:AggregatorReturns theMetricDatathat thisAggregationwill produce.- Specified by:
toMetricDatain interfaceAggregator<PointData,DoubleExemplarData> - Parameters:
resource- the resource producing the metric.instrumentationScopeInfo- the scope that instrumented the metric.metricDescriptor- the name, description and unit of the metric.points- list of pointstemporality- the temporality of the metric.- Returns:
- the
MetricDataTypethat thisAggregationwill produce.
-