Class DropAggregator
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.aggregator.DropAggregator
-
- All Implemented Interfaces:
Aggregator<PointData,DoubleExemplarData>
public final class DropAggregator extends java.lang.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
Fields Modifier and Type Field Description private static AggregatorHandle<PointData,DoubleExemplarData>
HANDLE
static Aggregator<PointData,DoubleExemplarData>
INSTANCE
private static PointData
POINT_DATA
-
Constructor Summary
Constructors Modifier Constructor Description private
DropAggregator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregatorHandle<PointData,DoubleExemplarData>
createHandle()
Returns a newAggregatorHandle
.MetricData
toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, java.util.Collection<PointData> points, AggregationTemporality temporality)
Returns theMetricData
that thisAggregation
will produce.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.sdk.metrics.internal.aggregator.Aggregator
copyPoint, createReusablePoint, diff, diffInPlace, toPoint, toPoint
-
-
-
-
Field Detail
-
POINT_DATA
private static final PointData POINT_DATA
-
INSTANCE
public static final Aggregator<PointData,DoubleExemplarData> INSTANCE
-
HANDLE
private static final AggregatorHandle<PointData,DoubleExemplarData> HANDLE
-
-
Method Detail
-
createHandle
public AggregatorHandle<PointData,DoubleExemplarData> createHandle()
Description copied from interface:Aggregator
Returns a newAggregatorHandle
. This MUST by used by the synchronous to aggregate recorded measurements during the collection cycle.- Specified by:
createHandle
in interfaceAggregator<PointData,DoubleExemplarData>
- Returns:
- a new
AggregatorHandle
.
-
toMetricData
public MetricData toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, java.util.Collection<PointData> points, AggregationTemporality temporality)
Description copied from interface:Aggregator
Returns theMetricData
that thisAggregation
will produce.- Specified by:
toMetricData
in 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
MetricDataType
that thisAggregation
will produce.
-
-