Class AlwaysOffFilter
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.exemplar.AlwaysOffFilter
-
- All Implemented Interfaces:
ExemplarFilter
public final class AlwaysOffFilter extends java.lang.Object implements ExemplarFilter
A filter which makes no measurements eligible for being an exemplar.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 (package private) static ExemplarFilter
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
AlwaysOffFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldSampleMeasurement(double value, Attributes attributes, Context context)
Returns whether or not a reservoir should attempt to filter a measurement.boolean
shouldSampleMeasurement(long value, Attributes attributes, Context context)
Returns whether or not a reservoir should attempt to filter a measurement.
-
-
-
Field Detail
-
INSTANCE
static final ExemplarFilter INSTANCE
-
-
Method Detail
-
shouldSampleMeasurement
public boolean shouldSampleMeasurement(long value, Attributes attributes, Context context)
Description copied from interface:ExemplarFilter
Returns whether or not a reservoir should attempt to filter a measurement.- Specified by:
shouldSampleMeasurement
in interfaceExemplarFilter
-
shouldSampleMeasurement
public boolean shouldSampleMeasurement(double value, Attributes attributes, Context context)
Description copied from interface:ExemplarFilter
Returns whether or not a reservoir should attempt to filter a measurement.- Specified by:
shouldSampleMeasurement
in interfaceExemplarFilter
-
-