Enum Class Telemetry.RequestIdMode

java.lang.Object
java.lang.Enum<Telemetry.RequestIdMode>
org.microproxy.otel.Telemetry.RequestIdMode
All Implemented Interfaces:
Serializable, Comparable<Telemetry.RequestIdMode>, Constable
Enclosing class:
Telemetry

public static enum Telemetry.RequestIdMode extends Enum<Telemetry.RequestIdMode>
What happens to a request's X-Request-Id.
  • Enum Constant Details

    • KEEP

      public static final Telemetry.RequestIdMode KEEP
      Keep the client's, or add a random UUID (version 4) when it has none.
    • REPLACE

      public static final Telemetry.RequestIdMode REPLACE
      Always replace it with a random UUID.
    • OFF

      public static final Telemetry.RequestIdMode OFF
      Leave the header alone; %UNIQUE_ID% stays a random UUID of its own.
  • Method Details

    • values

      public static Telemetry.RequestIdMode[] 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 Telemetry.RequestIdMode 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