NVIDIA DeepStream SDK API Reference

9.2 Release
semconv::gen_ai Namespace Reference

Namespaces

 GenAiOpenaiRequestResponseFormatValues
 
 GenAiOpenaiRequestServiceTierValues
 
 GenAiOperationNameValues
 
 GenAiOutputTypeValues
 
 GenAiProviderNameValues
 
 GenAiSystemValues
 
 GenAiTokenTypeValues
 

Functions

static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiClientOperationDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiClientOperationDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiClientTokenUsage (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiClientTokenUsage (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerRequestDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerRequestDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerTimePerOutputToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerTimePerOutputToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerTimeToFirstToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerTimeToFirstToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiClientOperationDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiClientOperationDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiClientTokenUsage (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiClientTokenUsage (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerRequestDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerRequestDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerTimePerOutputToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerTimePerOutputToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerTimeToFirstToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerTimeToFirstToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiClientOperationDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiClientOperationDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiClientTokenUsage (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiClientTokenUsage (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerRequestDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerRequestDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerTimePerOutputToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerTimePerOutputToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerTimeToFirstToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerTimeToFirstToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiClientOperationDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiClientOperationDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiClientTokenUsage (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiClientTokenUsage (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerRequestDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerRequestDuration (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerTimePerOutputToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerTimePerOutputToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< uint64_t > > CreateSyncInt64MetricGenAiServerTimeToFirstToken (metrics::Meter *meter)
 
static nostd::unique_ptr< metrics::Histogram< double > > CreateSyncDoubleMetricGenAiServerTimeToFirstToken (metrics::Meter *meter)
 

Variables

static constexpr const char * kMetricGenAiClientOperationDuration
 GenAI operation duration. More...
 
static constexpr const char * descrMetricGenAiClientOperationDuration = "GenAI operation duration"
 
static constexpr const char * unitMetricGenAiClientOperationDuration = "s"
 
static constexpr const char * kMetricGenAiClientTokenUsage = "gen_ai.client.token.usage"
 Measures number of input and output tokens used. More...
 
static constexpr const char * descrMetricGenAiClientTokenUsage
 
static constexpr const char * unitMetricGenAiClientTokenUsage = "{token}"
 
static constexpr const char * kMetricGenAiServerRequestDuration = "gen_ai.server.request.duration"
 Generative AI server request duration such as time-to-last byte or last output token. More...
 
static constexpr const char * descrMetricGenAiServerRequestDuration
 
static constexpr const char * unitMetricGenAiServerRequestDuration = "s"
 
static constexpr const char * kMetricGenAiServerTimePerOutputToken
 Time per output token generated after the first token for successful responses. More...
 
static constexpr const char * descrMetricGenAiServerTimePerOutputToken
 
static constexpr const char * unitMetricGenAiServerTimePerOutputToken = "s"
 
static constexpr const char * kMetricGenAiServerTimeToFirstToken
 Time to generate first token for successful responses. More...
 
static constexpr const char * descrMetricGenAiServerTimeToFirstToken
 
static constexpr const char * unitMetricGenAiServerTimeToFirstToken = "s"
 
static constexpr const char * kGenAiAgentDescription = "gen_ai.agent.description"
 Free-form description of the GenAI agent provided by the application. More...
 
static constexpr const char * kGenAiAgentId = "gen_ai.agent.id"
 The unique identifier of the GenAI agent. More...
 
static constexpr const char * kGenAiAgentName = "gen_ai.agent.name"
 Human-readable name of the GenAI agent provided by the application. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiCompletion = "gen_ai.completion"
 Deprecated, use Event API to report completions contents. More...
 
static constexpr const char * kGenAiConversationId = "gen_ai.conversation.id"
 The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. More...
 
static constexpr const char * kGenAiDataSourceId = "gen_ai.data_source.id"
 The data source identifier. More...
 
static constexpr const char * kGenAiInputMessages = "gen_ai.input.messages"
 The chat history provided to the model as an input. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiRequestResponseFormat
 Deprecated, use. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiRequestSeed
 Deprecated, use. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiRequestServiceTier
 Deprecated, use. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiResponseServiceTier
 Deprecated, use. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiResponseSystemFingerprint
 Deprecated, use. More...
 
static constexpr const char * kGenAiOperationName = "gen_ai.operation.name"
 The name of the operation being performed. More...
 
static constexpr const char * kGenAiOutputMessages = "gen_ai.output.messages"
 Messages returned by the model where each message represents a specific model response (choice, candidate). More...
 
static constexpr const char * kGenAiOutputType = "gen_ai.output.type"
 Represents the content type requested by the client. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiPrompt = "gen_ai.prompt"
 Deprecated, use Event API to report prompt contents. More...
 
static constexpr const char * kGenAiProviderName = "gen_ai.provider.name"
 The Generative AI provider as identified by the client or server instrumentation. More...
 
static constexpr const char * kGenAiRequestChoiceCount = "gen_ai.request.choice.count"
 The target number of candidate completions to return. More...
 
static constexpr const char * kGenAiRequestEncodingFormats = "gen_ai.request.encoding_formats"
 The encoding formats requested in an embeddings operation, if specified. More...
 
static constexpr const char * kGenAiRequestFrequencyPenalty = "gen_ai.request.frequency_penalty"
 The frequency penalty setting for the GenAI request. More...
 
static constexpr const char * kGenAiRequestMaxTokens = "gen_ai.request.max_tokens"
 The maximum number of tokens the model generates for a request. More...
 
static constexpr const char * kGenAiRequestModel = "gen_ai.request.model"
 The name of the GenAI model a request is being made to. More...
 
static constexpr const char * kGenAiRequestPresencePenalty = "gen_ai.request.presence_penalty"
 The presence penalty setting for the GenAI request. More...
 
static constexpr const char * kGenAiRequestSeed = "gen_ai.request.seed"
 Requests with same seed value more likely to return same result. More...
 
static constexpr const char * kGenAiRequestStopSequences = "gen_ai.request.stop_sequences"
 List of sequences that the model will use to stop generating further tokens. More...
 
static constexpr const char * kGenAiRequestTemperature = "gen_ai.request.temperature"
 The temperature setting for the GenAI request. More...
 
static constexpr const char * kGenAiRequestTopK = "gen_ai.request.top_k"
 The top_k sampling setting for the GenAI request. More...
 
static constexpr const char * kGenAiRequestTopP = "gen_ai.request.top_p"
 The top_p sampling setting for the GenAI request. More...
 
static constexpr const char * kGenAiResponseFinishReasons = "gen_ai.response.finish_reasons"
 Array of reasons the model stopped generating tokens, corresponding to each generation received. More...
 
static constexpr const char * kGenAiResponseId = "gen_ai.response.id"
 The unique identifier for the completion. More...
 
static constexpr const char * kGenAiResponseModel = "gen_ai.response.model"
 The name of the model that generated the response. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiSystem = "gen_ai.system"
 Deprecated, use. More...
 
static constexpr const char * kGenAiSystemInstructions = "gen_ai.system_instructions"
 The system message or instructions provided to the GenAI model separately from the chat history. More...
 
static constexpr const char * kGenAiTokenType = "gen_ai.token.type"
 The type of token being counted. More...
 
static constexpr const char * kGenAiToolCallId = "gen_ai.tool.call.id"
 The tool call identifier. More...
 
static constexpr const char * kGenAiToolDescription = "gen_ai.tool.description"
 The tool description. More...
 
static constexpr const char * kGenAiToolName = "gen_ai.tool.name"
 Name of the tool utilized by the agent. More...
 
static constexpr const char * kGenAiToolType = "gen_ai.tool.type"
 Type of the tool utilized by the agent. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiUsageCompletionTokens
 Deprecated, use. More...
 
static constexpr const char * kGenAiUsageInputTokens = "gen_ai.usage.input_tokens"
 The number of tokens used in the GenAI input (prompt). More...
 
static constexpr const char * kGenAiUsageOutputTokens = "gen_ai.usage.output_tokens"
 The number of tokens used in the GenAI response (completion). More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiUsagePromptTokens
 Deprecated, use. More...
 
static constexpr const char * kMetricGenAiClientOperationDuration
 GenAI operation duration. More...
 
static constexpr const char * descrMetricGenAiClientOperationDuration = "GenAI operation duration."
 
static constexpr const char * unitMetricGenAiClientOperationDuration = "s"
 
static constexpr const char * kMetricGenAiClientTokenUsage = "gen_ai.client.token.usage"
 Number of input and output tokens used. More...
 
static constexpr const char * descrMetricGenAiClientTokenUsage
 
static constexpr const char * unitMetricGenAiClientTokenUsage = "{token}"
 
static constexpr const char * kMetricGenAiServerRequestDuration = "gen_ai.server.request.duration"
 Generative AI server request duration such as time-to-last byte or last output token. More...
 
static constexpr const char * descrMetricGenAiServerRequestDuration
 
static constexpr const char * unitMetricGenAiServerRequestDuration = "s"
 
static constexpr const char * kMetricGenAiServerTimePerOutputToken
 Time per output token generated after the first token for successful responses. More...
 
static constexpr const char * descrMetricGenAiServerTimePerOutputToken
 
static constexpr const char * unitMetricGenAiServerTimePerOutputToken = "s"
 
static constexpr const char * kMetricGenAiServerTimeToFirstToken
 Time to generate first token for successful responses. More...
 
static constexpr const char * descrMetricGenAiServerTimeToFirstToken
 
static constexpr const char * unitMetricGenAiServerTimeToFirstToken = "s"
 
static constexpr const char * kMetricGenAiClientOperationDuration
 GenAI operation duration. More...
 
static constexpr const char * descrMetricGenAiClientOperationDuration = "GenAI operation duration"
 
static constexpr const char * unitMetricGenAiClientOperationDuration = "s"
 
static constexpr const char * kMetricGenAiClientTokenUsage = "gen_ai.client.token.usage"
 Measures number of input and output tokens used. More...
 
static constexpr const char * descrMetricGenAiClientTokenUsage
 
static constexpr const char * unitMetricGenAiClientTokenUsage = "{token}"
 
static constexpr const char * kMetricGenAiServerRequestDuration = "gen_ai.server.request.duration"
 Generative AI server request duration such as time-to-last byte or last output token. More...
 
static constexpr const char * descrMetricGenAiServerRequestDuration
 
static constexpr const char * unitMetricGenAiServerRequestDuration = "s"
 
static constexpr const char * kMetricGenAiServerTimePerOutputToken
 Time per output token generated after the first token for successful responses. More...
 
static constexpr const char * descrMetricGenAiServerTimePerOutputToken
 
static constexpr const char * unitMetricGenAiServerTimePerOutputToken = "s"
 
static constexpr const char * kMetricGenAiServerTimeToFirstToken
 Time to generate first token for successful responses. More...
 
static constexpr const char * descrMetricGenAiServerTimeToFirstToken
 
static constexpr const char * unitMetricGenAiServerTimeToFirstToken = "s"
 
static constexpr const char * kGenAiAgentDescription = "gen_ai.agent.description"
 Free-form description of the GenAI agent provided by the application. More...
 
static constexpr const char * kGenAiAgentId = "gen_ai.agent.id"
 The unique identifier of the GenAI agent. More...
 
static constexpr const char * kGenAiAgentName = "gen_ai.agent.name"
 Human-readable name of the GenAI agent provided by the application. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiCompletion = "gen_ai.completion"
 Deprecated, use Event API to report completions contents. More...
 
static constexpr const char * kGenAiConversationId = "gen_ai.conversation.id"
 The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. More...
 
static constexpr const char * kGenAiDataSourceId = "gen_ai.data_source.id"
 The data source identifier. More...
 
static constexpr const char * kGenAiInputMessages = "gen_ai.input.messages"
 The chat history provided to the model as an input. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiRequestResponseFormat
 Deprecated, use. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiRequestSeed
 Deprecated, use. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiRequestServiceTier
 Deprecated, use. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiResponseServiceTier
 Deprecated, use. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiOpenaiResponseSystemFingerprint
 Deprecated, use. More...
 
static constexpr const char * kGenAiOperationName = "gen_ai.operation.name"
 The name of the operation being performed. More...
 
static constexpr const char * kGenAiOutputMessages = "gen_ai.output.messages"
 Messages returned by the model where each message represents a specific model response (choice, candidate). More...
 
static constexpr const char * kGenAiOutputType = "gen_ai.output.type"
 Represents the content type requested by the client. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiPrompt = "gen_ai.prompt"
 Deprecated, use Event API to report prompt contents. More...
 
static constexpr const char * kGenAiProviderName = "gen_ai.provider.name"
 The Generative AI provider as identified by the client or server instrumentation. More...
 
static constexpr const char * kGenAiRequestChoiceCount = "gen_ai.request.choice.count"
 The target number of candidate completions to return. More...
 
static constexpr const char * kGenAiRequestEncodingFormats = "gen_ai.request.encoding_formats"
 The encoding formats requested in an embeddings operation, if specified. More...
 
static constexpr const char * kGenAiRequestFrequencyPenalty = "gen_ai.request.frequency_penalty"
 The frequency penalty setting for the GenAI request. More...
 
static constexpr const char * kGenAiRequestMaxTokens = "gen_ai.request.max_tokens"
 The maximum number of tokens the model generates for a request. More...
 
static constexpr const char * kGenAiRequestModel = "gen_ai.request.model"
 The name of the GenAI model a request is being made to. More...
 
static constexpr const char * kGenAiRequestPresencePenalty = "gen_ai.request.presence_penalty"
 The presence penalty setting for the GenAI request. More...
 
static constexpr const char * kGenAiRequestSeed = "gen_ai.request.seed"
 Requests with same seed value more likely to return same result. More...
 
static constexpr const char * kGenAiRequestStopSequences = "gen_ai.request.stop_sequences"
 List of sequences that the model will use to stop generating further tokens. More...
 
static constexpr const char * kGenAiRequestTemperature = "gen_ai.request.temperature"
 The temperature setting for the GenAI request. More...
 
static constexpr const char * kGenAiRequestTopK = "gen_ai.request.top_k"
 The top_k sampling setting for the GenAI request. More...
 
static constexpr const char * kGenAiRequestTopP = "gen_ai.request.top_p"
 The top_p sampling setting for the GenAI request. More...
 
static constexpr const char * kGenAiResponseFinishReasons = "gen_ai.response.finish_reasons"
 Array of reasons the model stopped generating tokens, corresponding to each generation received. More...
 
static constexpr const char * kGenAiResponseId = "gen_ai.response.id"
 The unique identifier for the completion. More...
 
static constexpr const char * kGenAiResponseModel = "gen_ai.response.model"
 The name of the model that generated the response. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiSystem = "gen_ai.system"
 Deprecated, use. More...
 
static constexpr const char * kGenAiSystemInstructions = "gen_ai.system_instructions"
 The system message or instructions provided to the GenAI model separately from the chat history. More...
 
static constexpr const char * kGenAiTokenType = "gen_ai.token.type"
 The type of token being counted. More...
 
static constexpr const char * kGenAiToolCallId = "gen_ai.tool.call.id"
 The tool call identifier. More...
 
static constexpr const char * kGenAiToolDescription = "gen_ai.tool.description"
 The tool description. More...
 
static constexpr const char * kGenAiToolName = "gen_ai.tool.name"
 Name of the tool utilized by the agent. More...
 
static constexpr const char * kGenAiToolType = "gen_ai.tool.type"
 Type of the tool utilized by the agent. More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiUsageCompletionTokens
 Deprecated, use. More...
 
static constexpr const char * kGenAiUsageInputTokens = "gen_ai.usage.input_tokens"
 The number of tokens used in the GenAI input (prompt). More...
 
static constexpr const char * kGenAiUsageOutputTokens = "gen_ai.usage.output_tokens"
 The number of tokens used in the GenAI response (completion). More...
 
static constexpr const OPENTELEMETRY_DEPRECATED char * kGenAiUsagePromptTokens
 Deprecated, use. More...
 
static constexpr const char * kMetricGenAiClientOperationDuration
 GenAI operation duration. More...
 
static constexpr const char * descrMetricGenAiClientOperationDuration = "GenAI operation duration."
 
static constexpr const char * unitMetricGenAiClientOperationDuration = "s"
 
static constexpr const char * kMetricGenAiClientTokenUsage = "gen_ai.client.token.usage"
 Number of input and output tokens used. More...
 
static constexpr const char * descrMetricGenAiClientTokenUsage
 
static constexpr const char * unitMetricGenAiClientTokenUsage = "{token}"
 
static constexpr const char * kMetricGenAiServerRequestDuration = "gen_ai.server.request.duration"
 Generative AI server request duration such as time-to-last byte or last output token. More...
 
static constexpr const char * descrMetricGenAiServerRequestDuration
 
static constexpr const char * unitMetricGenAiServerRequestDuration = "s"
 
static constexpr const char * kMetricGenAiServerTimePerOutputToken
 Time per output token generated after the first token for successful responses. More...
 
static constexpr const char * descrMetricGenAiServerTimePerOutputToken
 
static constexpr const char * unitMetricGenAiServerTimePerOutputToken = "s"
 
static constexpr const char * kMetricGenAiServerTimeToFirstToken
 Time to generate first token for successful responses. More...
 
static constexpr const char * descrMetricGenAiServerTimeToFirstToken
 
static constexpr const char * unitMetricGenAiServerTimeToFirstToken = "s"
 

Function Documentation

◆ CreateSyncDoubleMetricGenAiClientOperationDuration() [1/4]

static nostd::unique_ptr<metrics::Histogram<double> > semconv::gen_ai::CreateSyncDoubleMetricGenAiClientOperationDuration ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncDoubleMetricGenAiClientOperationDuration() [2/4]

◆ CreateSyncDoubleMetricGenAiClientOperationDuration() [3/4]

◆ CreateSyncDoubleMetricGenAiClientOperationDuration() [4/4]

◆ CreateSyncDoubleMetricGenAiClientTokenUsage() [1/4]

◆ CreateSyncDoubleMetricGenAiClientTokenUsage() [2/4]

static nostd::unique_ptr<metrics::Histogram<double> > semconv::gen_ai::CreateSyncDoubleMetricGenAiClientTokenUsage ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncDoubleMetricGenAiClientTokenUsage() [3/4]

static nostd::unique_ptr<metrics::Histogram<double> > semconv::gen_ai::CreateSyncDoubleMetricGenAiClientTokenUsage ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncDoubleMetricGenAiClientTokenUsage() [4/4]

static nostd::unique_ptr<metrics::Histogram<double> > semconv::gen_ai::CreateSyncDoubleMetricGenAiClientTokenUsage ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncDoubleMetricGenAiServerRequestDuration() [1/4]

◆ CreateSyncDoubleMetricGenAiServerRequestDuration() [2/4]

◆ CreateSyncDoubleMetricGenAiServerRequestDuration() [3/4]

static nostd::unique_ptr<metrics::Histogram<double> > semconv::gen_ai::CreateSyncDoubleMetricGenAiServerRequestDuration ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncDoubleMetricGenAiServerRequestDuration() [4/4]

static nostd::unique_ptr<metrics::Histogram<double> > semconv::gen_ai::CreateSyncDoubleMetricGenAiServerRequestDuration ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncDoubleMetricGenAiServerTimePerOutputToken() [1/4]

static nostd::unique_ptr<metrics::Histogram<double> > semconv::gen_ai::CreateSyncDoubleMetricGenAiServerTimePerOutputToken ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncDoubleMetricGenAiServerTimePerOutputToken() [2/4]

◆ CreateSyncDoubleMetricGenAiServerTimePerOutputToken() [3/4]

◆ CreateSyncDoubleMetricGenAiServerTimePerOutputToken() [4/4]

◆ CreateSyncDoubleMetricGenAiServerTimeToFirstToken() [1/4]

◆ CreateSyncDoubleMetricGenAiServerTimeToFirstToken() [2/4]

◆ CreateSyncDoubleMetricGenAiServerTimeToFirstToken() [3/4]

static nostd::unique_ptr<metrics::Histogram<double> > semconv::gen_ai::CreateSyncDoubleMetricGenAiServerTimeToFirstToken ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncDoubleMetricGenAiServerTimeToFirstToken() [4/4]

◆ CreateSyncInt64MetricGenAiClientOperationDuration() [1/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiClientOperationDuration ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiClientOperationDuration() [2/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiClientOperationDuration ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiClientOperationDuration() [3/4]

◆ CreateSyncInt64MetricGenAiClientOperationDuration() [4/4]

◆ CreateSyncInt64MetricGenAiClientTokenUsage() [1/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiClientTokenUsage ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiClientTokenUsage() [2/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiClientTokenUsage ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiClientTokenUsage() [3/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiClientTokenUsage ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiClientTokenUsage() [4/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiClientTokenUsage ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiServerRequestDuration() [1/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiServerRequestDuration ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiServerRequestDuration() [2/4]

◆ CreateSyncInt64MetricGenAiServerRequestDuration() [3/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiServerRequestDuration ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiServerRequestDuration() [4/4]

◆ CreateSyncInt64MetricGenAiServerTimePerOutputToken() [1/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiServerTimePerOutputToken ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiServerTimePerOutputToken() [2/4]

◆ CreateSyncInt64MetricGenAiServerTimePerOutputToken() [3/4]

◆ CreateSyncInt64MetricGenAiServerTimePerOutputToken() [4/4]

◆ CreateSyncInt64MetricGenAiServerTimeToFirstToken() [1/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiServerTimeToFirstToken ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiServerTimeToFirstToken() [2/4]

static nostd::unique_ptr<metrics::Histogram<uint64_t> > semconv::gen_ai::CreateSyncInt64MetricGenAiServerTimeToFirstToken ( metrics::Meter *  meter)
inlinestatic

◆ CreateSyncInt64MetricGenAiServerTimeToFirstToken() [3/4]

◆ CreateSyncInt64MetricGenAiServerTimeToFirstToken() [4/4]

Variable Documentation

◆ descrMetricGenAiClientOperationDuration [1/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiClientOperationDuration = "GenAI operation duration"
staticconstexpr

◆ descrMetricGenAiClientOperationDuration [2/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiClientOperationDuration = "GenAI operation duration"
staticconstexpr

◆ descrMetricGenAiClientOperationDuration [3/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiClientOperationDuration = "GenAI operation duration."
staticconstexpr

◆ descrMetricGenAiClientOperationDuration [4/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiClientOperationDuration = "GenAI operation duration."
staticconstexpr

◆ descrMetricGenAiClientTokenUsage [1/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiClientTokenUsage
staticconstexpr
Initial value:
=
"Measures number of input and output tokens used"

Definition at line 55 of file includes/opentelemetry/semconv/gen_ai_metrics.h.

Referenced by CreateSyncDoubleMetricGenAiClientTokenUsage(), and CreateSyncInt64MetricGenAiClientTokenUsage().

◆ descrMetricGenAiClientTokenUsage [2/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiClientTokenUsage
staticconstexpr
Initial value:
=
"Number of input and output tokens used."

Definition at line 55 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ descrMetricGenAiClientTokenUsage [3/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiClientTokenUsage
staticconstexpr
Initial value:
=
"Measures number of input and output tokens used"

Definition at line 55 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.

◆ descrMetricGenAiClientTokenUsage [4/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiClientTokenUsage
staticconstexpr
Initial value:
=
"Number of input and output tokens used."

Definition at line 55 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ descrMetricGenAiServerRequestDuration [1/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerRequestDuration
staticconstexpr
Initial value:
=
"Generative AI server request duration such as time-to-last byte or last output token."

Definition at line 81 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ descrMetricGenAiServerRequestDuration [2/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerRequestDuration
staticconstexpr
Initial value:
=
"Generative AI server request duration such as time-to-last byte or last output token."

Definition at line 81 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ descrMetricGenAiServerRequestDuration [3/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerRequestDuration
staticconstexpr
Initial value:
=
"Generative AI server request duration such as time-to-last byte or last output token"

Definition at line 81 of file includes/opentelemetry/semconv/gen_ai_metrics.h.

Referenced by CreateSyncDoubleMetricGenAiServerRequestDuration(), and CreateSyncInt64MetricGenAiServerRequestDuration().

◆ descrMetricGenAiServerRequestDuration [4/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerRequestDuration
staticconstexpr
Initial value:
=
"Generative AI server request duration such as time-to-last byte or last output token"

Definition at line 81 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.

◆ descrMetricGenAiServerTimePerOutputToken [1/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerTimePerOutputToken
staticconstexpr
Initial value:
=
"Time per output token generated after the first token for successful responses."

Definition at line 108 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ descrMetricGenAiServerTimePerOutputToken [2/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerTimePerOutputToken
staticconstexpr
Initial value:
=
"Time per output token generated after the first token for successful responses."

Definition at line 108 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ descrMetricGenAiServerTimePerOutputToken [3/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerTimePerOutputToken
staticconstexpr
Initial value:
=
"Time per output token generated after the first token for successful responses"

Definition at line 108 of file includes/opentelemetry/semconv/gen_ai_metrics.h.

Referenced by CreateSyncDoubleMetricGenAiServerTimePerOutputToken(), and CreateSyncInt64MetricGenAiServerTimePerOutputToken().

◆ descrMetricGenAiServerTimePerOutputToken [4/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerTimePerOutputToken
staticconstexpr
Initial value:
=
"Time per output token generated after the first token for successful responses"

Definition at line 108 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.

◆ descrMetricGenAiServerTimeToFirstToken [1/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerTimeToFirstToken
staticconstexpr
Initial value:
=
"Time to generate first token for successful responses."

Definition at line 135 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ descrMetricGenAiServerTimeToFirstToken [2/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerTimeToFirstToken
staticconstexpr
Initial value:
=
"Time to generate first token for successful responses."

Definition at line 135 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ descrMetricGenAiServerTimeToFirstToken [3/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerTimeToFirstToken
staticconstexpr
Initial value:
=
"Time to generate first token for successful responses"

Definition at line 135 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.

◆ descrMetricGenAiServerTimeToFirstToken [4/4]

constexpr const char* semconv::gen_ai::descrMetricGenAiServerTimeToFirstToken
staticconstexpr
Initial value:
=
"Time to generate first token for successful responses"

Definition at line 135 of file includes/opentelemetry/semconv/gen_ai_metrics.h.

Referenced by CreateSyncDoubleMetricGenAiServerTimeToFirstToken(), and CreateSyncInt64MetricGenAiServerTimeToFirstToken().

◆ kGenAiAgentDescription [1/2]

constexpr const char* semconv::gen_ai::kGenAiAgentDescription = "gen_ai.agent.description"
staticconstexpr

Free-form description of the GenAI agent provided by the application.

Definition at line 25 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiAgentDescription [2/2]

constexpr const char* semconv::gen_ai::kGenAiAgentDescription = "gen_ai.agent.description"
staticconstexpr

Free-form description of the GenAI agent provided by the application.

Definition at line 25 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiAgentId [1/2]

constexpr const char* semconv::gen_ai::kGenAiAgentId = "gen_ai.agent.id"
staticconstexpr

The unique identifier of the GenAI agent.

Definition at line 30 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiAgentId [2/2]

constexpr const char* semconv::gen_ai::kGenAiAgentId = "gen_ai.agent.id"
staticconstexpr

The unique identifier of the GenAI agent.

Definition at line 30 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiAgentName [1/2]

constexpr const char* semconv::gen_ai::kGenAiAgentName = "gen_ai.agent.name"
staticconstexpr

Human-readable name of the GenAI agent provided by the application.

Definition at line 35 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiAgentName [2/2]

constexpr const char* semconv::gen_ai::kGenAiAgentName = "gen_ai.agent.name"
staticconstexpr

Human-readable name of the GenAI agent provided by the application.

Definition at line 35 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiCompletion [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiCompletion = "gen_ai.completion"
staticconstexpr

Deprecated, use Event API to report completions contents.

Deprecated:
{"note": "Removed, no replacement at this time.", "reason": "obsoleted"}

Definition at line 43 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiCompletion [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiCompletion = "gen_ai.completion"
staticconstexpr

Deprecated, use Event API to report completions contents.

Deprecated:
{"note": "Removed, no replacement at this time.", "reason": "obsoleted"}

Definition at line 43 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiConversationId [1/2]

constexpr const char* semconv::gen_ai::kGenAiConversationId = "gen_ai.conversation.id"
staticconstexpr

The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation.

Definition at line 49 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiConversationId [2/2]

constexpr const char* semconv::gen_ai::kGenAiConversationId = "gen_ai.conversation.id"
staticconstexpr

The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation.

Definition at line 49 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiDataSourceId [1/2]

constexpr const char* semconv::gen_ai::kGenAiDataSourceId = "gen_ai.data_source.id"
staticconstexpr

The data source identifier.

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.id

SHOULD 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 referencing

gen_ai.data_source.id

MAY also leverage additional attributes, such as

db.*

, to further identify and describe the data source.

Definition at line 62 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiDataSourceId [2/2]

constexpr const char* semconv::gen_ai::kGenAiDataSourceId = "gen_ai.data_source.id"
staticconstexpr

The data source identifier.

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.id

SHOULD 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 referencing

gen_ai.data_source.id

MAY also leverage additional attributes, such as

db.*

, to further identify and describe the data source.

Definition at line 62 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiInputMessages [1/2]

constexpr const char* semconv::gen_ai::kGenAiInputMessages = "gen_ai.input.messages"
staticconstexpr

The chat history provided to the model as an input.

Instrumentations MUST follow Input messages JSON schema. When the attribute is recorded on events, it MUST be recorded in structured form. When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.

Messages MUST be provided in the order they were sent to the model. Instrumentations MAY provide a way for users to filter or truncate input messages.

[!Warning] This attribute is likely to contain sensitive information including user/PII data.

See Recording content on attributes section for more details.

Definition at line 79 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiInputMessages [2/2]

constexpr const char* semconv::gen_ai::kGenAiInputMessages = "gen_ai.input.messages"
staticconstexpr

The chat history provided to the model as an input.

Instrumentations MUST follow Input messages JSON schema. When the attribute is recorded on events, it MUST be recorded in structured form. When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.

Messages MUST be provided in the order they were sent to the model. Instrumentations MAY provide a way for users to filter or truncate input messages.

[!Warning] This attribute is likely to contain sensitive information including user/PII data.

See Recording content on attributes section for more details.

Definition at line 79 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiRequestResponseFormat [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiRequestResponseFormat
staticconstexpr
Initial value:
=
"gen_ai.openai.request.response_format"

Deprecated, use.

gen_ai.output.type

.

Deprecated:
{"note": "Replaced by @code gen_ai.output.type @endcode.", "reason": "renamed", "renamed_to": "gen_ai.output.type"}

Definition at line 88 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiRequestResponseFormat [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiRequestResponseFormat
staticconstexpr
Initial value:
=
"gen_ai.openai.request.response_format"

Deprecated, use.

gen_ai.output.type

.

Deprecated:
{"note": "Replaced by @code gen_ai.output.type @endcode.", "reason": "renamed", "renamed_to": "gen_ai.output.type"}

Definition at line 88 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiRequestSeed [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiRequestSeed
staticconstexpr
Initial value:
=
"gen_ai.openai.request.seed"

Deprecated, use.

gen_ai.request.seed

.

Deprecated:
{"note": "Replaced by @code gen_ai.request.seed @endcode.", "reason": "renamed", "renamed_to": "gen_ai.request.seed"}

Definition at line 98 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiRequestSeed [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiRequestSeed
staticconstexpr
Initial value:
=
"gen_ai.openai.request.seed"

Deprecated, use.

gen_ai.request.seed

.

Deprecated:
{"note": "Replaced by @code gen_ai.request.seed @endcode.", "reason": "renamed", "renamed_to": "gen_ai.request.seed"}

Definition at line 98 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiRequestServiceTier [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiRequestServiceTier
staticconstexpr
Initial value:
=
"gen_ai.openai.request.service_tier"

Deprecated, use.

openai.request.service_tier

.

Deprecated:
{"note": "Replaced by @code openai.request.service_tier @endcode.", "reason": "renamed", "renamed_to": "openai.request.service_tier"}

Definition at line 108 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiRequestServiceTier [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiRequestServiceTier
staticconstexpr
Initial value:
=
"gen_ai.openai.request.service_tier"

Deprecated, use.

openai.request.service_tier

.

Deprecated:
{"note": "Replaced by @code openai.request.service_tier @endcode.", "reason": "renamed", "renamed_to": "openai.request.service_tier"}

Definition at line 108 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiResponseServiceTier [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiResponseServiceTier
staticconstexpr
Initial value:
=
"gen_ai.openai.response.service_tier"

Deprecated, use.

openai.response.service_tier

.

Deprecated:
{"note": "Replaced by @code openai.response.service_tier @endcode.", "reason": "renamed", "renamed_to": "openai.response.service_tier"}

Definition at line 118 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiResponseServiceTier [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiResponseServiceTier
staticconstexpr
Initial value:
=
"gen_ai.openai.response.service_tier"

Deprecated, use.

openai.response.service_tier

.

Deprecated:
{"note": "Replaced by @code openai.response.service_tier @endcode.", "reason": "renamed", "renamed_to": "openai.response.service_tier"}

Definition at line 118 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiResponseSystemFingerprint [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiResponseSystemFingerprint
staticconstexpr
Initial value:
=
"gen_ai.openai.response.system_fingerprint"

Deprecated, use.

openai.response.system_fingerprint

.

Deprecated:
{"note": "Replaced by @code openai.response.system_fingerprint @endcode.", "reason": "renamed", "renamed_to": "openai.response.system_fingerprint"}

Definition at line 128 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOpenaiResponseSystemFingerprint [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiOpenaiResponseSystemFingerprint
staticconstexpr
Initial value:
=
"gen_ai.openai.response.system_fingerprint"

Deprecated, use.

openai.response.system_fingerprint

.

Deprecated:
{"note": "Replaced by @code openai.response.system_fingerprint @endcode.", "reason": "renamed", "renamed_to": "openai.response.system_fingerprint"}

Definition at line 128 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOperationName [1/2]

constexpr const char* semconv::gen_ai::kGenAiOperationName = "gen_ai.operation.name"
staticconstexpr

The name of the operation being performed.

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.

Definition at line 139 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOperationName [2/2]

constexpr const char* semconv::gen_ai::kGenAiOperationName = "gen_ai.operation.name"
staticconstexpr

The name of the operation being performed.

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.

Definition at line 139 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOutputMessages [1/2]

constexpr const char* semconv::gen_ai::kGenAiOutputMessages = "gen_ai.output.messages"
staticconstexpr

Messages returned by the model where each message represents a specific model response (choice, candidate).

Instrumentations MUST follow Output messages JSON schema

Each message represents a single output choice/candidate generated by the model. Each message corresponds to exactly one generation (choice/candidate) and vice versa - one choice cannot be split across multiple messages or one message cannot contain parts from multiple choices.

When the attribute is recorded on events, it MUST be recorded in structured form. When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.

Instrumentations MAY provide a way for users to filter or truncate output messages.

[!Warning] This attribute is likely to contain sensitive information including user/PII data.

See Recording content on attributes section for more details.

Definition at line 162 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOutputMessages [2/2]

constexpr const char* semconv::gen_ai::kGenAiOutputMessages = "gen_ai.output.messages"
staticconstexpr

Messages returned by the model where each message represents a specific model response (choice, candidate).

Instrumentations MUST follow Output messages JSON schema

Each message represents a single output choice/candidate generated by the model. Each message corresponds to exactly one generation (choice/candidate) and vice versa - one choice cannot be split across multiple messages or one message cannot contain parts from multiple choices.

When the attribute is recorded on events, it MUST be recorded in structured form. When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.

Instrumentations MAY provide a way for users to filter or truncate output messages.

[!Warning] This attribute is likely to contain sensitive information including user/PII data.

See Recording content on attributes section for more details.

Definition at line 162 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOutputType [1/2]

constexpr const char* semconv::gen_ai::kGenAiOutputType = "gen_ai.output.type"
staticconstexpr

Represents the content type requested by the client.

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.

Definition at line 173 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiOutputType [2/2]

constexpr const char* semconv::gen_ai::kGenAiOutputType = "gen_ai.output.type"
staticconstexpr

Represents the content type requested by the client.

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.

Definition at line 173 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiPrompt [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiPrompt = "gen_ai.prompt"
staticconstexpr

Deprecated, use Event API to report prompt contents.

Deprecated:
{"note": "Removed, no replacement at this time.", "reason": "obsoleted"}

Definition at line 181 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiPrompt [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiPrompt = "gen_ai.prompt"
staticconstexpr

Deprecated, use Event API to report prompt contents.

Deprecated:
{"note": "Removed, no replacement at this time.", "reason": "obsoleted"}

Definition at line 181 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiProviderName [1/2]

constexpr const char* semconv::gen_ai::kGenAiProviderName = "gen_ai.provider.name"
staticconstexpr

The Generative AI provider as identified by the client or server instrumentation.

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

, and

server.address

attributes may help identify the actual system in use.

The

gen_ai.provider.name

attribute 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 the

gen_ai.provider.name

set to

aws.bedrock

and include applicable

aws.bedrock.*

attributes and are not expected to include

openai.*

attributes.

Definition at line 203 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiProviderName [2/2]

constexpr const char* semconv::gen_ai::kGenAiProviderName = "gen_ai.provider.name"
staticconstexpr

The Generative AI provider as identified by the client or server instrumentation.

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

, and

server.address

attributes may help identify the actual system in use.

The

gen_ai.provider.name

attribute 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 the

gen_ai.provider.name

set to

aws.bedrock

and include applicable

aws.bedrock.*

attributes and are not expected to include

openai.*

attributes.

Definition at line 203 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestChoiceCount [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestChoiceCount = "gen_ai.request.choice.count"
staticconstexpr

The target number of candidate completions to return.

Definition at line 208 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestChoiceCount [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestChoiceCount = "gen_ai.request.choice.count"
staticconstexpr

The target number of candidate completions to return.

Definition at line 208 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestEncodingFormats [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestEncodingFormats = "gen_ai.request.encoding_formats"
staticconstexpr

The encoding formats requested in an embeddings operation, if specified.

In some GenAI systems the encoding formats are called embedding types. Also, some GenAI systems only accept a single format per request.

Definition at line 216 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestEncodingFormats [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestEncodingFormats = "gen_ai.request.encoding_formats"
staticconstexpr

The encoding formats requested in an embeddings operation, if specified.

In some GenAI systems the encoding formats are called embedding types. Also, some GenAI systems only accept a single format per request.

Definition at line 216 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestFrequencyPenalty [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestFrequencyPenalty = "gen_ai.request.frequency_penalty"
staticconstexpr

The frequency penalty setting for the GenAI request.

Definition at line 221 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestFrequencyPenalty [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestFrequencyPenalty = "gen_ai.request.frequency_penalty"
staticconstexpr

The frequency penalty setting for the GenAI request.

Definition at line 221 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestMaxTokens [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestMaxTokens = "gen_ai.request.max_tokens"
staticconstexpr

The maximum number of tokens the model generates for a request.

Definition at line 226 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestMaxTokens [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestMaxTokens = "gen_ai.request.max_tokens"
staticconstexpr

The maximum number of tokens the model generates for a request.

Definition at line 226 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestModel [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestModel = "gen_ai.request.model"
staticconstexpr

The name of the GenAI model a request is being made to.

Definition at line 231 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestModel [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestModel = "gen_ai.request.model"
staticconstexpr

The name of the GenAI model a request is being made to.

Definition at line 231 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestPresencePenalty [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestPresencePenalty = "gen_ai.request.presence_penalty"
staticconstexpr

The presence penalty setting for the GenAI request.

Definition at line 236 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestPresencePenalty [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestPresencePenalty = "gen_ai.request.presence_penalty"
staticconstexpr

The presence penalty setting for the GenAI request.

Definition at line 236 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestSeed [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestSeed = "gen_ai.request.seed"
staticconstexpr

Requests with same seed value more likely to return same result.

Definition at line 241 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestSeed [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestSeed = "gen_ai.request.seed"
staticconstexpr

Requests with same seed value more likely to return same result.

Definition at line 241 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestStopSequences [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestStopSequences = "gen_ai.request.stop_sequences"
staticconstexpr

List of sequences that the model will use to stop generating further tokens.

Definition at line 246 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestStopSequences [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestStopSequences = "gen_ai.request.stop_sequences"
staticconstexpr

List of sequences that the model will use to stop generating further tokens.

Definition at line 246 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestTemperature [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestTemperature = "gen_ai.request.temperature"
staticconstexpr

The temperature setting for the GenAI request.

Definition at line 251 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestTemperature [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestTemperature = "gen_ai.request.temperature"
staticconstexpr

The temperature setting for the GenAI request.

Definition at line 251 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestTopK [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestTopK = "gen_ai.request.top_k"
staticconstexpr

The top_k sampling setting for the GenAI request.

Definition at line 256 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestTopK [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestTopK = "gen_ai.request.top_k"
staticconstexpr

The top_k sampling setting for the GenAI request.

Definition at line 256 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestTopP [1/2]

constexpr const char* semconv::gen_ai::kGenAiRequestTopP = "gen_ai.request.top_p"
staticconstexpr

The top_p sampling setting for the GenAI request.

Definition at line 261 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiRequestTopP [2/2]

constexpr const char* semconv::gen_ai::kGenAiRequestTopP = "gen_ai.request.top_p"
staticconstexpr

The top_p sampling setting for the GenAI request.

Definition at line 261 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiResponseFinishReasons [1/2]

constexpr const char* semconv::gen_ai::kGenAiResponseFinishReasons = "gen_ai.response.finish_reasons"
staticconstexpr

Array of reasons the model stopped generating tokens, corresponding to each generation received.

Definition at line 266 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiResponseFinishReasons [2/2]

constexpr const char* semconv::gen_ai::kGenAiResponseFinishReasons = "gen_ai.response.finish_reasons"
staticconstexpr

Array of reasons the model stopped generating tokens, corresponding to each generation received.

Definition at line 266 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiResponseId [1/2]

constexpr const char* semconv::gen_ai::kGenAiResponseId = "gen_ai.response.id"
staticconstexpr

The unique identifier for the completion.

Definition at line 271 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiResponseId [2/2]

constexpr const char* semconv::gen_ai::kGenAiResponseId = "gen_ai.response.id"
staticconstexpr

The unique identifier for the completion.

Definition at line 271 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiResponseModel [1/2]

constexpr const char* semconv::gen_ai::kGenAiResponseModel = "gen_ai.response.model"
staticconstexpr

The name of the model that generated the response.

Definition at line 276 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiResponseModel [2/2]

constexpr const char* semconv::gen_ai::kGenAiResponseModel = "gen_ai.response.model"
staticconstexpr

The name of the model that generated the response.

Definition at line 276 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiSystem [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiSystem = "gen_ai.system"
staticconstexpr

Deprecated, use.

gen_ai.provider.name

instead.

Deprecated:
{"note": "Replaced by @code gen_ai.provider.name @endcode.", "reason": "renamed", "renamed_to": "gen_ai.provider.name"}

Definition at line 285 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiSystem [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiSystem = "gen_ai.system"
staticconstexpr

Deprecated, use.

gen_ai.provider.name

instead.

Deprecated:
{"note": "Replaced by @code gen_ai.provider.name @endcode.", "reason": "renamed", "renamed_to": "gen_ai.provider.name"}

Definition at line 285 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiSystemInstructions [1/2]

constexpr const char* semconv::gen_ai::kGenAiSystemInstructions = "gen_ai.system_instructions"
staticconstexpr

The system message or instructions provided to the GenAI model separately from the chat history.

This attribute SHOULD be used when the corresponding provider or API allows to provide system instructions or messages separately from the chat history.

Instructions that are part of the chat history SHOULD be recorded in

gen_ai.input.messages

attribute instead.

Instrumentations MUST follow System instructions JSON schema.

When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.

Instrumentations MAY provide a way for users to filter or truncate system instructions.

[!Warning] This attribute may contain sensitive information.

See Recording content on attributes section for more details.

Definition at line 309 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiSystemInstructions [2/2]

constexpr const char* semconv::gen_ai::kGenAiSystemInstructions = "gen_ai.system_instructions"
staticconstexpr

The system message or instructions provided to the GenAI model separately from the chat history.

This attribute SHOULD be used when the corresponding provider or API allows to provide system instructions or messages separately from the chat history.

Instructions that are part of the chat history SHOULD be recorded in

gen_ai.input.messages

attribute instead.

Instrumentations MUST follow System instructions JSON schema.

When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.

Instrumentations MAY provide a way for users to filter or truncate system instructions.

[!Warning] This attribute may contain sensitive information.

See Recording content on attributes section for more details.

Definition at line 309 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiTokenType [1/2]

constexpr const char* semconv::gen_ai::kGenAiTokenType = "gen_ai.token.type"
staticconstexpr

The type of token being counted.

Definition at line 314 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiTokenType [2/2]

constexpr const char* semconv::gen_ai::kGenAiTokenType = "gen_ai.token.type"
staticconstexpr

The type of token being counted.

Definition at line 314 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiToolCallId [1/2]

constexpr const char* semconv::gen_ai::kGenAiToolCallId = "gen_ai.tool.call.id"
staticconstexpr

The tool call identifier.

Definition at line 319 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiToolCallId [2/2]

constexpr const char* semconv::gen_ai::kGenAiToolCallId = "gen_ai.tool.call.id"
staticconstexpr

The tool call identifier.

Definition at line 319 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiToolDescription [1/2]

constexpr const char* semconv::gen_ai::kGenAiToolDescription = "gen_ai.tool.description"
staticconstexpr

The tool description.

Definition at line 324 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiToolDescription [2/2]

constexpr const char* semconv::gen_ai::kGenAiToolDescription = "gen_ai.tool.description"
staticconstexpr

The tool description.

Definition at line 324 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiToolName [1/2]

constexpr const char* semconv::gen_ai::kGenAiToolName = "gen_ai.tool.name"
staticconstexpr

Name of the tool utilized by the agent.

Definition at line 329 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiToolName [2/2]

constexpr const char* semconv::gen_ai::kGenAiToolName = "gen_ai.tool.name"
staticconstexpr

Name of the tool utilized by the agent.

Definition at line 329 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiToolType [1/2]

constexpr const char* semconv::gen_ai::kGenAiToolType = "gen_ai.tool.type"
staticconstexpr

Type of the tool utilized by the agent.

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.

Definition at line 342 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiToolType [2/2]

constexpr const char* semconv::gen_ai::kGenAiToolType = "gen_ai.tool.type"
staticconstexpr

Type of the tool utilized by the agent.

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.

Definition at line 342 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiUsageCompletionTokens [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiUsageCompletionTokens
staticconstexpr
Initial value:
=
"gen_ai.usage.completion_tokens"

Deprecated, use.

gen_ai.usage.output_tokens

instead.

Deprecated:
{"note": "Replaced by @code gen_ai.usage.output_tokens @endcode.", "reason": "renamed", "renamed_to": "gen_ai.usage.output_tokens"}

Definition at line 351 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiUsageCompletionTokens [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiUsageCompletionTokens
staticconstexpr
Initial value:
=
"gen_ai.usage.completion_tokens"

Deprecated, use.

gen_ai.usage.output_tokens

instead.

Deprecated:
{"note": "Replaced by @code gen_ai.usage.output_tokens @endcode.", "reason": "renamed", "renamed_to": "gen_ai.usage.output_tokens"}

Definition at line 351 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiUsageInputTokens [1/2]

constexpr const char* semconv::gen_ai::kGenAiUsageInputTokens = "gen_ai.usage.input_tokens"
staticconstexpr

The number of tokens used in the GenAI input (prompt).

Definition at line 357 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiUsageInputTokens [2/2]

constexpr const char* semconv::gen_ai::kGenAiUsageInputTokens = "gen_ai.usage.input_tokens"
staticconstexpr

The number of tokens used in the GenAI input (prompt).

Definition at line 357 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiUsageOutputTokens [1/2]

constexpr const char* semconv::gen_ai::kGenAiUsageOutputTokens = "gen_ai.usage.output_tokens"
staticconstexpr

The number of tokens used in the GenAI response (completion).

Definition at line 362 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiUsageOutputTokens [2/2]

constexpr const char* semconv::gen_ai::kGenAiUsageOutputTokens = "gen_ai.usage.output_tokens"
staticconstexpr

The number of tokens used in the GenAI response (completion).

Definition at line 362 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiUsagePromptTokens [1/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiUsagePromptTokens
staticconstexpr
Initial value:
=
"gen_ai.usage.prompt_tokens"

Deprecated, use.

gen_ai.usage.input_tokens

instead.

Deprecated:
{"note": "Replaced by @code gen_ai.usage.input_tokens @endcode.", "reason": "renamed", "renamed_to": "gen_ai.usage.input_tokens"}

Definition at line 371 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kGenAiUsagePromptTokens [2/2]

constexpr const OPENTELEMETRY_DEPRECATED char* semconv::gen_ai::kGenAiUsagePromptTokens
staticconstexpr
Initial value:
=
"gen_ai.usage.prompt_tokens"

Deprecated, use.

gen_ai.usage.input_tokens

instead.

Deprecated:
{"note": "Replaced by @code gen_ai.usage.input_tokens @endcode.", "reason": "renamed", "renamed_to": "gen_ai.usage.input_tokens"}

Definition at line 371 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.

◆ kMetricGenAiClientOperationDuration [1/4]

constexpr const char* semconv::gen_ai::kMetricGenAiClientOperationDuration
staticconstexpr
Initial value:
=
"gen_ai.client.operation.duration"

GenAI operation duration.

histogram

Definition at line 28 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.

◆ kMetricGenAiClientOperationDuration [2/4]

constexpr const char* semconv::gen_ai::kMetricGenAiClientOperationDuration
staticconstexpr
Initial value:
=
"gen_ai.client.operation.duration"

GenAI operation duration.

histogram

Definition at line 28 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ kMetricGenAiClientOperationDuration [3/4]

constexpr const char* semconv::gen_ai::kMetricGenAiClientOperationDuration
staticconstexpr
Initial value:
=
"gen_ai.client.operation.duration"

GenAI operation duration.

histogram

Definition at line 28 of file includes/opentelemetry/semconv/gen_ai_metrics.h.

Referenced by CreateSyncDoubleMetricGenAiClientOperationDuration(), and CreateSyncInt64MetricGenAiClientOperationDuration().

◆ kMetricGenAiClientOperationDuration [4/4]

constexpr const char* semconv::gen_ai::kMetricGenAiClientOperationDuration
staticconstexpr
Initial value:
=
"gen_ai.client.operation.duration"

GenAI operation duration.

histogram

Definition at line 28 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ kMetricGenAiClientTokenUsage [1/4]

constexpr const char* semconv::gen_ai::kMetricGenAiClientTokenUsage = "gen_ai.client.token.usage"
staticconstexpr

Measures number of input and output tokens used.

histogram

Definition at line 54 of file includes/opentelemetry/semconv/gen_ai_metrics.h.

Referenced by CreateSyncDoubleMetricGenAiClientTokenUsage(), and CreateSyncInt64MetricGenAiClientTokenUsage().

◆ kMetricGenAiClientTokenUsage [2/4]

constexpr const char* semconv::gen_ai::kMetricGenAiClientTokenUsage = "gen_ai.client.token.usage"
staticconstexpr

Number of input and output tokens used.

histogram

Definition at line 54 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ kMetricGenAiClientTokenUsage [3/4]

constexpr const char* semconv::gen_ai::kMetricGenAiClientTokenUsage = "gen_ai.client.token.usage"
staticconstexpr

Measures number of input and output tokens used.

histogram

Definition at line 54 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.

◆ kMetricGenAiClientTokenUsage [4/4]

constexpr const char* semconv::gen_ai::kMetricGenAiClientTokenUsage = "gen_ai.client.token.usage"
staticconstexpr

Number of input and output tokens used.

histogram

Definition at line 54 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ kMetricGenAiServerRequestDuration [1/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerRequestDuration = "gen_ai.server.request.duration"
staticconstexpr

Generative AI server request duration such as time-to-last byte or last output token.

histogram

Definition at line 80 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ kMetricGenAiServerRequestDuration [2/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerRequestDuration = "gen_ai.server.request.duration"
staticconstexpr

Generative AI server request duration such as time-to-last byte or last output token.

histogram

Definition at line 80 of file includes/opentelemetry/semconv/gen_ai_metrics.h.

Referenced by CreateSyncDoubleMetricGenAiServerRequestDuration(), and CreateSyncInt64MetricGenAiServerRequestDuration().

◆ kMetricGenAiServerRequestDuration [3/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerRequestDuration = "gen_ai.server.request.duration"
staticconstexpr

Generative AI server request duration such as time-to-last byte or last output token.

histogram

Definition at line 80 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.

◆ kMetricGenAiServerRequestDuration [4/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerRequestDuration = "gen_ai.server.request.duration"
staticconstexpr

Generative AI server request duration such as time-to-last byte or last output token.

histogram

Definition at line 80 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ kMetricGenAiServerTimePerOutputToken [1/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerTimePerOutputToken
staticconstexpr
Initial value:
=
"gen_ai.server.time_per_output_token"

Time per output token generated after the first token for successful responses.

histogram

Definition at line 106 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ kMetricGenAiServerTimePerOutputToken [2/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerTimePerOutputToken
staticconstexpr
Initial value:
=
"gen_ai.server.time_per_output_token"

Time per output token generated after the first token for successful responses.

histogram

Definition at line 106 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ kMetricGenAiServerTimePerOutputToken [3/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerTimePerOutputToken
staticconstexpr
Initial value:
=
"gen_ai.server.time_per_output_token"

Time per output token generated after the first token for successful responses.

histogram

Definition at line 106 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.

◆ kMetricGenAiServerTimePerOutputToken [4/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerTimePerOutputToken
staticconstexpr
Initial value:
=
"gen_ai.server.time_per_output_token"

Time per output token generated after the first token for successful responses.

histogram

Definition at line 106 of file includes/opentelemetry/semconv/gen_ai_metrics.h.

Referenced by CreateSyncDoubleMetricGenAiServerTimePerOutputToken(), and CreateSyncInt64MetricGenAiServerTimePerOutputToken().

◆ kMetricGenAiServerTimeToFirstToken [1/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerTimeToFirstToken
staticconstexpr
Initial value:
=
"gen_ai.server.time_to_first_token"

Time to generate first token for successful responses.

histogram

Definition at line 133 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ kMetricGenAiServerTimeToFirstToken [2/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerTimeToFirstToken
staticconstexpr
Initial value:
=
"gen_ai.server.time_to_first_token"

Time to generate first token for successful responses.

histogram

Definition at line 133 of file includes/opentelemetry/semconv/gen_ai_metrics.h.

Referenced by CreateSyncDoubleMetricGenAiServerTimeToFirstToken(), and CreateSyncInt64MetricGenAiServerTimeToFirstToken().

◆ kMetricGenAiServerTimeToFirstToken [3/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerTimeToFirstToken
staticconstexpr
Initial value:
=
"gen_ai.server.time_to_first_token"

Time to generate first token for successful responses.

histogram

Definition at line 133 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.

◆ kMetricGenAiServerTimeToFirstToken [4/4]

constexpr const char* semconv::gen_ai::kMetricGenAiServerTimeToFirstToken
staticconstexpr
Initial value:
=
"gen_ai.server.time_to_first_token"

Time to generate first token for successful responses.

histogram

Definition at line 133 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.

◆ unitMetricGenAiClientOperationDuration [1/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiClientOperationDuration = "s"
staticconstexpr

◆ unitMetricGenAiClientOperationDuration [2/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiClientOperationDuration = "s"
staticconstexpr

◆ unitMetricGenAiClientOperationDuration [3/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiClientOperationDuration = "s"
staticconstexpr

◆ unitMetricGenAiClientOperationDuration [4/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiClientOperationDuration = "s"
staticconstexpr

◆ unitMetricGenAiClientTokenUsage [1/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiClientTokenUsage = "{token}"
staticconstexpr

◆ unitMetricGenAiClientTokenUsage [2/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiClientTokenUsage = "{token}"
staticconstexpr

◆ unitMetricGenAiClientTokenUsage [3/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiClientTokenUsage = "{token}"
staticconstexpr

◆ unitMetricGenAiClientTokenUsage [4/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiClientTokenUsage = "{token}"
staticconstexpr

◆ unitMetricGenAiServerRequestDuration [1/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerRequestDuration = "s"
staticconstexpr

◆ unitMetricGenAiServerRequestDuration [2/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerRequestDuration = "s"
staticconstexpr

◆ unitMetricGenAiServerRequestDuration [3/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerRequestDuration = "s"
staticconstexpr

◆ unitMetricGenAiServerRequestDuration [4/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerRequestDuration = "s"
staticconstexpr

◆ unitMetricGenAiServerTimePerOutputToken [1/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerTimePerOutputToken = "s"
staticconstexpr

◆ unitMetricGenAiServerTimePerOutputToken [2/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerTimePerOutputToken = "s"
staticconstexpr

◆ unitMetricGenAiServerTimePerOutputToken [3/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerTimePerOutputToken = "s"
staticconstexpr

◆ unitMetricGenAiServerTimePerOutputToken [4/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerTimePerOutputToken = "s"
staticconstexpr

◆ unitMetricGenAiServerTimeToFirstToken [1/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerTimeToFirstToken = "s"
staticconstexpr

◆ unitMetricGenAiServerTimeToFirstToken [2/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerTimeToFirstToken = "s"
staticconstexpr

◆ unitMetricGenAiServerTimeToFirstToken [3/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerTimeToFirstToken = "s"
staticconstexpr

◆ unitMetricGenAiServerTimeToFirstToken [4/4]

constexpr const char* semconv::gen_ai::unitMetricGenAiServerTimeToFirstToken = "s"
staticconstexpr