Interface CardinalityLimitSelector
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CardinalityLimitSelector
Customize theMetricReader
cardinality limit as a function ofInstrumentType
. Register viaSdkMeterProviderBuilder.registerMetricReader(MetricReader, CardinalityLimitSelector)
.- Since:
- 1.44.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static CardinalityLimitSelector
defaultCardinalityLimitSelector()
The defaultCardinalityLimitSelector
, allowing each metric to have2000
points.int
getCardinalityLimit(InstrumentType instrumentType)
Return the default cardinality limit for metrics from instruments of typeinstrumentType
.
-
-
-
Method Detail
-
defaultCardinalityLimitSelector
static CardinalityLimitSelector defaultCardinalityLimitSelector()
The defaultCardinalityLimitSelector
, allowing each metric to have2000
points.
-
getCardinalityLimit
int getCardinalityLimit(InstrumentType instrumentType)
Return the default cardinality limit for metrics from instruments of typeinstrumentType
. The cardinality limit dictates the maximum number of distinct points (or time series) for the metric.
-
-