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.
Customize the
MetricReader cardinality limit as a
function of InstrumentType. Register via SdkMeterProviderBuilder.registerMetricReader(MetricReader, CardinalityLimitSelector).- Since:
- 1.44.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic CardinalityLimitSelectorThe defaultCardinalityLimitSelector, allowing each metric to have2000points.intgetCardinalityLimit(InstrumentType instrumentType) Return the default cardinality limit for metrics from instruments of typeinstrumentType.
-
Method Details
-
defaultCardinalityLimitSelector
The defaultCardinalityLimitSelector, allowing each metric to have2000points. -
getCardinalityLimit
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.
-