Enum Class OTelGenAiAttributes

java.lang.Object
java.lang.Enum<OTelGenAiAttributes>
dev.langchain4j.micrometer.metrics.conventions.OTelGenAiAttributes
All Implemented Interfaces:
Serializable, Comparable<OTelGenAiAttributes>, Constable

public enum OTelGenAiAttributes extends Enum<OTelGenAiAttributes>
  • Enum Constant Details

    • OPERATION_NAME

      public static final OTelGenAiAttributes OPERATION_NAME
      The name of the operation being performed.
    • PROVIDER_NAME

      public static final OTelGenAiAttributes PROVIDER_NAME
      The Generative AI provider as identified by the client or server instrumentation.
    • TOKEN_TYPE

      public static final OTelGenAiAttributes TOKEN_TYPE
      The type of token that is counted: input, output, total.
    • REQUEST_MODEL

      public static final OTelGenAiAttributes REQUEST_MODEL
      The name of the model a request is being made to.
    • REQUEST_FREQUENCY_PENALTY

      public static final OTelGenAiAttributes REQUEST_FREQUENCY_PENALTY
      The frequency penalty setting for the model request.
    • REQUEST_MAX_TOKENS

      public static final OTelGenAiAttributes REQUEST_MAX_TOKENS
      The maximum number of tokens the model generates for a request.
    • REQUEST_PRESENCE_PENALTY

      public static final OTelGenAiAttributes REQUEST_PRESENCE_PENALTY
      The presence penalty setting for the model request.
    • REQUEST_STOP_SEQUENCES

      public static final OTelGenAiAttributes REQUEST_STOP_SEQUENCES
      List of sequences that the model will use to stop generating further tokens.
    • REQUEST_TEMPERATURE

      public static final OTelGenAiAttributes REQUEST_TEMPERATURE
      The temperature setting for the model request.
    • REQUEST_TOP_K

      public static final OTelGenAiAttributes REQUEST_TOP_K
      The top_k sampling setting for the model request.
    • REQUEST_TOP_P

      public static final OTelGenAiAttributes REQUEST_TOP_P
      The top_p sampling setting for the model request.
    • RESPONSE_FINISH_REASONS

      public static final OTelGenAiAttributes RESPONSE_FINISH_REASONS
      Reasons the model stopped generating tokens, corresponding to each generation received.
    • RESPONSE_ID

      public static final OTelGenAiAttributes RESPONSE_ID
      The unique identifier for the AI response.
    • RESPONSE_MODEL

      public static final OTelGenAiAttributes RESPONSE_MODEL
      The name of the model that generated the response.
    • ERROR_TYPE

      public static final OTelGenAiAttributes ERROR_TYPE
      The type of error that occurred.
    • SERVER_PORT

      public static final OTelGenAiAttributes SERVER_PORT
      The GenAI server port.
    • SERVER_ADDRESS

      public static final OTelGenAiAttributes SERVER_ADDRESS
      The GenAI server address.
  • Method Details

    • values

      public static OTelGenAiAttributes[] 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 OTelGenAiAttributes 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
    • value

      public String value()