Class GenAiIncubatingAttributes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.static final classDeprecated.Replaced byopenai.request.service_tier, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final classDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final classDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final classDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final classDeprecated.Replaced bygen_ai.provider.name, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final classDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Removed, no replacement at this time.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Double> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Replaced bygen_ai.output.type, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Replaced bygen_ai.request.seed, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Replaced byopenai.request.service_tier, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Replaced byopenai.response.service_tier, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Replaced byopenai.response.system_fingerprint, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Removed, no replacement at this time.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Double> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Double> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Boolean> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Double> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Double> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Double> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Double> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Replaced bygen_ai.provider.name, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Replaced bygen_ai.usage.output_tokens, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Replaced bygen_ai.usage.input_tokens, which has moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<Long> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.static final io.opentelemetry.api.common.AttributeKey<String> Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository. -
Method Summary
-
Field Details
-
GEN_AI_AGENT_DESCRIPTION
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_AGENT_DESCRIPTIONDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Free-form description of the GenAI agent provided by the application. -
GEN_AI_AGENT_ID
Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The unique identifier of the GenAI agent. -
GEN_AI_AGENT_NAME
Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Human-readable name of the GenAI agent provided by the application. -
GEN_AI_AGENT_VERSION
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_AGENT_VERSIONDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The version of the GenAI agent. -
GEN_AI_COMPLETION
Deprecated.Removed, no replacement at this time.Deprecated, use Event API to report completions contents. -
GEN_AI_CONVERSATION_ID
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_CONVERSATION_IDDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. -
GEN_AI_DATA_SOURCE_ID
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_DATA_SOURCE_IDDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The data source identifier.Notes:
Data sources are used by AI agents and RAG applications to store grounding data. A data source may be an external database, object store, document collection, website, or any other storage system used by the GenAI agent or application. The
gen_ai.data_source.idSHOULD match the identifier used by the GenAI system rather than a name specific to the external storage, such as a database or object store. Semantic conventions referencinggen_ai.data_source.idMAY also leverage additional attributes, such asdb.*, to further identify and describe the data source. -
GEN_AI_EMBEDDINGS_DIMENSION_COUNT
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_EMBEDDINGS_DIMENSION_COUNTDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The number of dimensions the resulting output embeddings should have. -
GEN_AI_EVALUATION_EXPLANATION
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_EVALUATION_EXPLANATIONDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.A free-form explanation for the assigned score provided by the evaluator. -
GEN_AI_EVALUATION_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_EVALUATION_NAMEDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The name of the evaluation metric used for the GenAI response. -
GEN_AI_EVALUATION_SCORE_LABEL
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_EVALUATION_SCORE_LABELDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Human readable label for evaluation.Notes:
This attribute provides a human-readable interpretation of the evaluation score produced by an evaluator. For example, a score value of 1 could mean "relevant" in one evaluation system and "not relevant" in another, depending on the scoring range and evaluator. The label SHOULD have low cardinality. Possible values depend on the evaluation metric and evaluator used; implementations SHOULD document the possible values.
-
GEN_AI_EVALUATION_SCORE_VALUE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Double> GEN_AI_EVALUATION_SCORE_VALUEDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The evaluation score returned by the evaluator. -
GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_OPENAI_REQUEST_RESPONSE_FORMATDeprecated.Replaced bygen_ai.output.type, which has moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated, usegen_ai.output.type. -
GEN_AI_OPENAI_REQUEST_SEED
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_OPENAI_REQUEST_SEEDDeprecated.Replaced bygen_ai.request.seed, which has moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated, usegen_ai.request.seed. -
GEN_AI_OPENAI_REQUEST_SERVICE_TIER
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_OPENAI_REQUEST_SERVICE_TIERDeprecated.Replaced byopenai.request.service_tier, which has moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated, useopenai.request.service_tier. -
GEN_AI_OPENAI_RESPONSE_SERVICE_TIER
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_OPENAI_RESPONSE_SERVICE_TIERDeprecated.Replaced byopenai.response.service_tier, which has moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated, useopenai.response.service_tier. -
GEN_AI_OPENAI_RESPONSE_SYSTEM_FINGERPRINT
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_OPENAI_RESPONSE_SYSTEM_FINGERPRINTDeprecated.Replaced byopenai.response.system_fingerprint, which has moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated, useopenai.response.system_fingerprint. -
GEN_AI_OPERATION_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_OPERATION_NAMEDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The name of the operation being performed.Notes:
If one of the predefined values applies, but specific system uses a different name it's RECOMMENDED to document it in the semantic conventions for specific GenAI system and use system-specific name in the instrumentation. If a different name is not documented, instrumentation libraries SHOULD use applicable predefined value.
-
GEN_AI_OUTPUT_TYPE
Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Represents the content type requested by the client.Notes:
This attribute SHOULD be used when the client requests output of a specific type. The model may return zero or more outputs of this type. This attribute specifies the output modality and not the actual output format. For example, if an image is requested, the actual output could be a URL pointing to an image file. Additional output format details may be recorded in the future in the
gen_ai.output.{type}.*attributes. -
GEN_AI_PROMPT
Deprecated.Removed, no replacement at this time.Deprecated, use Event API to report prompt contents. -
GEN_AI_PROMPT_NAME
Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The name of the prompt that uniquely identifies it. -
GEN_AI_PROVIDER_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_PROVIDER_NAMEDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The Generative AI provider as identified by the client or server instrumentation.Notes:
The attribute SHOULD be set based on the instrumentation's best knowledge and may differ from the actual model provider.
Multiple providers, including Azure OpenAI, Gemini, and AI hosting platforms are accessible using the OpenAI REST API and corresponding client libraries, but may proxy or host models from different providers.
The
gen_ai.request.model,gen_ai.response.model, andserver.addressattributes may help identify the actual system in use.The
gen_ai.provider.nameattribute acts as a discriminator that identifies the GenAI telemetry format flavor specific to that provider within GenAI semantic conventions. It SHOULD be set consistently with provider-specific attributes and signals. For example, GenAI spans, metrics, and events related to AWS Bedrock should have thegen_ai.provider.nameset toaws.bedrockand include applicableaws.bedrock.*attributes and are not expected to includeopenai.*attributes. -
GEN_AI_REQUEST_CHOICE_COUNT
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_REQUEST_CHOICE_COUNTDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The target number of candidate completions to return. -
GEN_AI_REQUEST_ENCODING_FORMATS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<List<String>> GEN_AI_REQUEST_ENCODING_FORMATSDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The encoding formats requested in an embeddings operation, if specified.Notes:
In some GenAI systems the encoding formats are called embedding types. Also, some GenAI systems only accept a single format per request.
-
GEN_AI_REQUEST_FREQUENCY_PENALTY
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Double> GEN_AI_REQUEST_FREQUENCY_PENALTYDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The frequency penalty setting for the GenAI request. -
GEN_AI_REQUEST_MAX_TOKENS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_REQUEST_MAX_TOKENSDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The maximum number of tokens the model generates for a request. -
GEN_AI_REQUEST_MODEL
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_REQUEST_MODELDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The name of the GenAI model a request is being made to. -
GEN_AI_REQUEST_PRESENCE_PENALTY
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Double> GEN_AI_REQUEST_PRESENCE_PENALTYDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The presence penalty setting for the GenAI request. -
GEN_AI_REQUEST_SEED
Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Requests with same seed value more likely to return same result. -
GEN_AI_REQUEST_STOP_SEQUENCES
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<List<String>> GEN_AI_REQUEST_STOP_SEQUENCESDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.List of sequences that the model will use to stop generating further tokens. -
GEN_AI_REQUEST_STREAM
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Boolean> GEN_AI_REQUEST_STREAMDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Indicates whether the GenAI request was made in streaming mode. -
GEN_AI_REQUEST_TEMPERATURE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Double> GEN_AI_REQUEST_TEMPERATUREDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The temperature setting for the GenAI request. -
GEN_AI_REQUEST_TOP_K
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Double> GEN_AI_REQUEST_TOP_KDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The top_k sampling setting for the GenAI request. -
GEN_AI_REQUEST_TOP_P
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Double> GEN_AI_REQUEST_TOP_PDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The top_p sampling setting for the GenAI request. -
GEN_AI_RESPONSE_FINISH_REASONS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<List<String>> GEN_AI_RESPONSE_FINISH_REASONSDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Array of reasons the model stopped generating tokens, corresponding to each generation received. -
GEN_AI_RESPONSE_ID
Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The unique identifier for the completion. -
GEN_AI_RESPONSE_MODEL
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_RESPONSE_MODELDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The name of the model that generated the response. -
GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Double> GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNKDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Time to first chunk in a streaming response, measured from request issuance, in seconds. The value is measured from when the client issues the generation request to when the first chunk is received in the response stream. -
GEN_AI_RETRIEVAL_QUERY_TEXT
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_RETRIEVAL_QUERY_TEXTDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The query text used for retrieval.Notes:
[!Warning] This attribute may contain sensitive information.
-
GEN_AI_SYSTEM
Deprecated.Replaced bygen_ai.provider.name, which has moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated, usegen_ai.provider.nameinstead. -
GEN_AI_TOKEN_TYPE
Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The type of token being counted. -
GEN_AI_TOOL_CALL_ID
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_TOOL_CALL_IDDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The tool call identifier. -
GEN_AI_TOOL_DESCRIPTION
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_TOOL_DESCRIPTIONDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The tool description. -
GEN_AI_TOOL_NAME
Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Name of the tool utilized by the agent. -
GEN_AI_TOOL_TYPE
Deprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Type of the tool utilized by the agentNotes:
Extension: A tool executed on the agent-side to directly call external APIs, bridging the gap between the agent and real-world systems. Agent-side operations involve actions that are performed by the agent on the server or within the agent's controlled environment. Function: A tool executed on the client-side, where the agent generates parameters for a predefined function, and the client executes the logic. Client-side operations are actions taken on the user's end or within the client application. Datastore: A tool used by the agent to access and query structured or unstructured external data for retrieval-augmented tasks or knowledge updates.
-
GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENSDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The number of input tokens written to a provider-managed cache.Notes:
The value SHOULD be included in
gen_ai.usage.input_tokens. -
GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_USAGE_CACHE_READ_INPUT_TOKENSDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The number of input tokens served from a provider-managed cache.Notes:
The value SHOULD be included in
gen_ai.usage.input_tokens. -
GEN_AI_USAGE_COMPLETION_TOKENS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_USAGE_COMPLETION_TOKENSDeprecated.Replaced bygen_ai.usage.output_tokens, which has moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated, usegen_ai.usage.output_tokensinstead. -
GEN_AI_USAGE_INPUT_TOKENS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_USAGE_INPUT_TOKENSDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The number of tokens used in the GenAI input (prompt).Notes:
This value SHOULD include all types of input tokens, including cached tokens. Instrumentations SHOULD make a best effort to populate this value, using a total provided by the provider when available or, depending on the provider API, by summing different token types parsed from the provider output.
-
GEN_AI_USAGE_OUTPUT_TOKENS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_USAGE_OUTPUT_TOKENSDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The number of tokens used in the GenAI response (completion). -
GEN_AI_USAGE_PROMPT_TOKENS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_USAGE_PROMPT_TOKENSDeprecated.Replaced bygen_ai.usage.input_tokens, which has moved to the OpenTelemetry GenAI semantic conventions repository.Deprecated, usegen_ai.usage.input_tokensinstead. -
GEN_AI_USAGE_REASONING_OUTPUT_TOKENS
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> GEN_AI_USAGE_REASONING_OUTPUT_TOKENSDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.The number of output tokens used for reasoning (e.g. chain-of-thought, extended thinking).Notes:
The value SHOULD be included in
gen_ai.usage.output_tokens. -
GEN_AI_WORKFLOW_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> GEN_AI_WORKFLOW_NAMEDeprecated.Moved to the OpenTelemetry GenAI semantic conventions repository.Human-readable name of the GenAI workflow provided by the application.Notes:
This attribute can be populated in different frameworks eg: name of the first chain in LangChain OR name of the crew in CrewAI.
-
gen_ai.output.type, which has moved to the OpenTelemetry GenAI semantic conventions repository.