Enum Class VeniceOpenTelemetryMetricNamingFormat

java.lang.Object
java.lang.Enum<VeniceOpenTelemetryMetricNamingFormat>
com.linkedin.venice.stats.VeniceOpenTelemetryMetricNamingFormat
All Implemented Interfaces:
VeniceEnumValue, Serializable, Comparable<VeniceOpenTelemetryMetricNamingFormat>, Constable

public enum VeniceOpenTelemetryMetricNamingFormat extends Enum<VeniceOpenTelemetryMetricNamingFormat> implements VeniceEnumValue
  • Enum Constant Details

    • SNAKE_CASE

      public static final VeniceOpenTelemetryMetricNamingFormat SNAKE_CASE
      Default format if not configured, names are defined as per this. should use snake case as per https://opentelemetry.io/docs/specs/semconv/general/attribute-naming/ For example: http.response.status_code
    • CAMEL_CASE

      public static final VeniceOpenTelemetryMetricNamingFormat CAMEL_CASE
      Alternate format for attribute names. If configured, defined names in snake_case will be transformed to either one of below formats. camel case: For example, http.response.statusCode pascal case: For example, Http.Response.StatusCode
    • PASCAL_CASE

      public static final VeniceOpenTelemetryMetricNamingFormat PASCAL_CASE
  • Field Details

    • SIZE

      public static final int SIZE
  • Method Details

    • values

      public static VeniceOpenTelemetryMetricNamingFormat[] 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 VeniceOpenTelemetryMetricNamingFormat 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
    • getValue

      public int getValue()
      Specified by:
      getValue in interface VeniceEnumValue
    • validateMetricName

      public static void validateMetricName(String name)
      validate whether the input name is defined as a valid SNAKE_CASE
    • transformMetricName

      public static String transformMetricName(String input, VeniceOpenTelemetryMetricNamingFormat metricFormat)
    • getDefaultFormat

      public static VeniceOpenTelemetryMetricNamingFormat getDefaultFormat()