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
Since:
1.44.0
  • Method Details

    • defaultCardinalityLimitSelector

      static CardinalityLimitSelector defaultCardinalityLimitSelector()
      The default CardinalityLimitSelector, allowing each metric to have 2000 points.
    • getCardinalityLimit

      int getCardinalityLimit(InstrumentType instrumentType)
      Return the default cardinality limit for metrics from instruments of type instrumentType. The cardinality limit dictates the maximum number of distinct points (or time series) for the metric.