Class GenAiIncubatingEvents

java.lang.Object
io.opentelemetry.semconv.incubating.GenAiIncubatingEvents

public final class GenAiIncubatingEvents extends Object
  • Field Details

    • GEN_AI_ASSISTANT_MESSAGE

      @Deprecated public static final String GEN_AI_ASSISTANT_MESSAGE
      Deprecated.
      Chat history is reported on gen_ai.input.messages attribute on spans or gen_ai.client.inference.operation.details event.
      This event describes the assistant message passed to GenAI system.
      See Also:
    • GEN_AI_CHOICE

      @Deprecated public static final String GEN_AI_CHOICE
      Deprecated.
      Chat history is reported on gen_ai.output.messages attribute on spans or gen_ai.client.inference.operation.details event.
      This event describes the Gen AI response message.
      See Also:
    • GEN_AI_CLIENT_INFERENCE_OPERATION_DETAILS

      @Deprecated public static final String GEN_AI_CLIENT_INFERENCE_OPERATION_DETAILS
      Describes the details of a GenAI completion request including chat history and parameters.

      Notes:

      This event is opt-in and could be used to store input and output details independently from traces.

      See Also:
    • GEN_AI_CLIENT_OPERATION_EXCEPTION

      @Deprecated public static final String GEN_AI_CLIENT_OPERATION_EXCEPTION
      This event represents an exception that occurred during a Generative AI client operation, such as API errors, rate limiting, model errors, timeouts, or other errors that prevent the operation from completing successfully.

      Notes:

      This event SHOULD be recorded when an exception occurs during Generative AI client operations. Instrumentations SHOULD set the severity to WARN (severity number 13) when recording this event. Instrumentations MAY provide a configuration option to populate exception events with the attributes captured on the corresponding Generative AI client span.

      See Also:
    • GEN_AI_EVALUATION_RESULT

      @Deprecated public static final String GEN_AI_EVALUATION_RESULT
      This event captures the result of evaluating GenAI output for quality, accuracy, or other characteristics. This event SHOULD be parented to GenAI operation span being evaluated when possible or set gen_ai.response.id when span id is not available.
      See Also:
    • GEN_AI_SYSTEM_MESSAGE

      @Deprecated public static final String GEN_AI_SYSTEM_MESSAGE
      Deprecated.
      Chat history is reported on gen_ai.system_instructions attribute on spans or gen_ai.client.inference.operation.details event.
      This event describes the system instructions passed to the GenAI model.
      See Also:
    • GEN_AI_TOOL_MESSAGE

      @Deprecated public static final String GEN_AI_TOOL_MESSAGE
      Deprecated.
      Chat history is reported on gen_ai.input.messages attribute on spans or gen_ai.client.inference.operation.details event.
      This event describes the response from a tool or function call passed to the GenAI model.
      See Also:
    • GEN_AI_USER_MESSAGE

      @Deprecated public static final String GEN_AI_USER_MESSAGE
      Deprecated.
      Chat history is reported on gen_ai.input.messages attribute on spans or gen_ai.client.inference.operation.details event.
      This event describes the user message passed to the GenAI model.
      See Also: