Enum Class VeniceRequestKeyCountBucket

java.lang.Object
java.lang.Enum<VeniceRequestKeyCountBucket>
com.linkedin.venice.stats.dimensions.VeniceRequestKeyCountBucket
All Implemented Interfaces:
VeniceDimensionInterface, Serializable, Comparable<VeniceRequestKeyCountBucket>, Constable

public enum VeniceRequestKeyCountBucket extends Enum<VeniceRequestKeyCountBucket> implements VeniceDimensionInterface
Coarse buckets for request key count, used as an OTel dimension on CallTime metrics so that SLOs can distinguish latency across batch sizes without blowing up cardinality with raw counts.

KEYS_LE_0 captures recordings that carry a non-positive key count — in practice the -1 sentinel that server-side pre-parse errors emit when the request failed before its key count could be parsed. Dashboards should filter this bucket out of SLO views since the latency it represents is not tied to a real batch size.

  • Enum Constant Details

  • Method Details

    • values

      public static VeniceRequestKeyCountBucket[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VeniceRequestKeyCountBucket valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDimensionName

      public VeniceMetricsDimensions getDimensionName()
      All instances of this Enum should have the same dimension name. Refer VeniceDimensionInterface.getDimensionName() for more details.
      Specified by:
      getDimensionName in interface VeniceDimensionInterface
    • fromKeyCount

      public static VeniceRequestKeyCountBucket fromKeyCount(int keyCount)
      Single-get short-circuits in a single comparison. Multi-key requests fall through to a balanced comparison tree. The non-positive sentinel falls through to the terminal return.