Namespaces | |
| GenAiOpenaiRequestResponseFormatValues | |
| GenAiOpenaiRequestServiceTierValues | |
| GenAiOperationNameValues | |
| GenAiOutputTypeValues | |
| GenAiProviderNameValues | |
| GenAiSystemValues | |
| GenAiTokenTypeValues | |
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" |
|
inlinestatic |
Definition at line 42 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiClientOperationDuration, kMetricGenAiClientOperationDuration, and unitMetricGenAiClientOperationDuration.
|
inlinestatic |
Definition at line 42 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiClientOperationDuration, kMetricGenAiClientOperationDuration, and unitMetricGenAiClientOperationDuration.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 68 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiClientTokenUsage, kMetricGenAiClientTokenUsage, and unitMetricGenAiClientTokenUsage.
|
inlinestatic |
Definition at line 68 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiClientTokenUsage, kMetricGenAiClientTokenUsage, and unitMetricGenAiClientTokenUsage.
|
inlinestatic |
Definition at line 68 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiClientTokenUsage, kMetricGenAiClientTokenUsage, and unitMetricGenAiClientTokenUsage.
|
inlinestatic |
Definition at line 68 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiClientTokenUsage, kMetricGenAiClientTokenUsage, and unitMetricGenAiClientTokenUsage.
|
inlinestatic |
Definition at line 94 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiServerRequestDuration, kMetricGenAiServerRequestDuration, and unitMetricGenAiServerRequestDuration.
|
inlinestatic |
|
inlinestatic |
Definition at line 94 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiServerRequestDuration, kMetricGenAiServerRequestDuration, and unitMetricGenAiServerRequestDuration.
|
inlinestatic |
Definition at line 94 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiServerRequestDuration, kMetricGenAiServerRequestDuration, and unitMetricGenAiServerRequestDuration.
|
inlinestatic |
Definition at line 121 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiServerTimePerOutputToken, kMetricGenAiServerTimePerOutputToken, and unitMetricGenAiServerTimePerOutputToken.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 121 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiServerTimePerOutputToken, kMetricGenAiServerTimePerOutputToken, and unitMetricGenAiServerTimePerOutputToken.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 148 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiServerTimeToFirstToken, kMetricGenAiServerTimeToFirstToken, and unitMetricGenAiServerTimeToFirstToken.
|
inlinestatic |
Definition at line 148 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateDoubleHistogram(), descrMetricGenAiServerTimeToFirstToken, kMetricGenAiServerTimeToFirstToken, and unitMetricGenAiServerTimeToFirstToken.
|
inlinestatic |
Definition at line 34 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiClientOperationDuration, kMetricGenAiClientOperationDuration, and unitMetricGenAiClientOperationDuration.
|
inlinestatic |
Definition at line 34 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiClientOperationDuration, kMetricGenAiClientOperationDuration, and unitMetricGenAiClientOperationDuration.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 60 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiClientTokenUsage, kMetricGenAiClientTokenUsage, and unitMetricGenAiClientTokenUsage.
|
inlinestatic |
Definition at line 60 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiClientTokenUsage, kMetricGenAiClientTokenUsage, and unitMetricGenAiClientTokenUsage.
|
inlinestatic |
Definition at line 60 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiClientTokenUsage, kMetricGenAiClientTokenUsage, and unitMetricGenAiClientTokenUsage.
|
inlinestatic |
Definition at line 60 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiClientTokenUsage, kMetricGenAiClientTokenUsage, and unitMetricGenAiClientTokenUsage.
|
inlinestatic |
Definition at line 86 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiServerRequestDuration, kMetricGenAiServerRequestDuration, and unitMetricGenAiServerRequestDuration.
|
inlinestatic |
Definition at line 86 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiServerRequestDuration, kMetricGenAiServerRequestDuration, and unitMetricGenAiServerRequestDuration.
|
inlinestatic |
Definition at line 86 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiServerRequestDuration, kMetricGenAiServerRequestDuration, and unitMetricGenAiServerRequestDuration.
|
inlinestatic |
|
inlinestatic |
Definition at line 113 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiServerTimePerOutputToken, kMetricGenAiServerTimePerOutputToken, and unitMetricGenAiServerTimePerOutputToken.
|
inlinestatic |
|
inlinestatic |
Definition at line 113 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiServerTimePerOutputToken, kMetricGenAiServerTimePerOutputToken, and unitMetricGenAiServerTimePerOutputToken.
|
inlinestatic |
|
inlinestatic |
Definition at line 140 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiServerTimeToFirstToken, kMetricGenAiServerTimeToFirstToken, and unitMetricGenAiServerTimeToFirstToken.
|
inlinestatic |
Definition at line 140 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
References metrics::Meter::CreateUInt64Histogram(), descrMetricGenAiServerTimeToFirstToken, kMetricGenAiServerTimeToFirstToken, and unitMetricGenAiServerTimeToFirstToken.
|
inlinestatic |
|
inlinestatic |
|
staticconstexpr |
Definition at line 30 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiClientOperationDuration(), and CreateSyncInt64MetricGenAiClientOperationDuration().
|
staticconstexpr |
Definition at line 30 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 30 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 30 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 55 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiClientTokenUsage(), and CreateSyncInt64MetricGenAiClientTokenUsage().
|
staticconstexpr |
Definition at line 55 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 55 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 55 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 81 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 81 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 81 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiServerRequestDuration(), and CreateSyncInt64MetricGenAiServerRequestDuration().
|
staticconstexpr |
Definition at line 81 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 108 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 108 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 108 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiServerTimePerOutputToken(), and CreateSyncInt64MetricGenAiServerTimePerOutputToken().
|
staticconstexpr |
Definition at line 108 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 135 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 135 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 135 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 135 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiServerTimeToFirstToken(), and CreateSyncInt64MetricGenAiServerTimeToFirstToken().
|
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.
|
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.
|
staticconstexpr |
The unique identifier of the GenAI agent.
Definition at line 30 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The unique identifier of the GenAI agent.
Definition at line 30 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
staticconstexpr |
Deprecated, use Event API to report completions contents.
Definition at line 43 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use Event API to report completions contents.
Definition at line 43 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
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
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
MAY also leverage additional attributes, such as
, to further identify and describe the data source.
Definition at line 62 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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
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
MAY also leverage additional attributes, such as
, to further identify and describe the data source.
Definition at line 62 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 88 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 88 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 98 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 98 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 108 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 108 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 118 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 118 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 128 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
.
Definition at line 128 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
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.
|
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.
|
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
attributes.
Definition at line 173 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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
attributes.
Definition at line 173 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use Event API to report prompt contents.
Definition at line 181 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use Event API to report prompt contents.
Definition at line 181 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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
,
, and
attributes may help identify the actual system in use.
The
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
set to
and include applicable
attributes and are not expected to include
attributes.
Definition at line 203 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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
,
, and
attributes may help identify the actual system in use.
The
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
set to
and include applicable
attributes and are not expected to include
attributes.
Definition at line 203 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The target number of candidate completions to return.
Definition at line 208 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
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.
|
staticconstexpr |
The frequency penalty setting for the GenAI request.
Definition at line 221 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
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.
|
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.
|
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.
|
staticconstexpr |
The presence penalty setting for the GenAI request.
Definition at line 236 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
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.
|
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.
|
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.
|
staticconstexpr |
The temperature setting for the GenAI request.
Definition at line 251 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The temperature setting for the GenAI request.
Definition at line 251 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The top_k sampling setting for the GenAI request.
Definition at line 256 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
staticconstexpr |
The top_p sampling setting for the GenAI request.
Definition at line 261 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
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.
|
staticconstexpr |
The unique identifier for the completion.
Definition at line 271 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The unique identifier for the completion.
Definition at line 271 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The name of the model that generated the response.
Definition at line 276 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
staticconstexpr |
Deprecated, use.
instead.
Definition at line 285 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
instead.
Definition at line 285 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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
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.
|
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
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.
|
staticconstexpr |
The type of token being counted.
Definition at line 314 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The type of token being counted.
Definition at line 314 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The tool call identifier.
Definition at line 319 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The tool call identifier.
Definition at line 319 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The tool description.
Definition at line 324 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
The tool description.
Definition at line 324 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Name of the tool utilized by the agent.
Definition at line 329 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
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.
|
staticconstexpr |
Deprecated, use.
instead.
Definition at line 351 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
instead.
Definition at line 351 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
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.
|
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.
|
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.
|
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.
|
staticconstexpr |
Deprecated, use.
instead.
Definition at line 371 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
Deprecated, use.
instead.
Definition at line 371 of file includes/opentelemetry/semconv/incubating/gen_ai_attributes.h.
|
staticconstexpr |
GenAI operation duration.
histogram
Definition at line 28 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
GenAI operation duration.
histogram
Definition at line 28 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
GenAI operation duration.
histogram
Definition at line 28 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiClientOperationDuration(), and CreateSyncInt64MetricGenAiClientOperationDuration().
|
staticconstexpr |
GenAI operation duration.
histogram
Definition at line 28 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
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().
|
staticconstexpr |
Number of input and output tokens used.
histogram
Definition at line 54 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
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.
|
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.
|
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.
|
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().
|
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.
|
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.
|
staticconstexpr |
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.
|
staticconstexpr |
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.
|
staticconstexpr |
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.
|
staticconstexpr |
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().
|
staticconstexpr |
Time to generate first token for successful responses.
histogram
Definition at line 133 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
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().
|
staticconstexpr |
Time to generate first token for successful responses.
histogram
Definition at line 133 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
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.
|
staticconstexpr |
Definition at line 31 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 31 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiClientOperationDuration(), and CreateSyncInt64MetricGenAiClientOperationDuration().
|
staticconstexpr |
Definition at line 31 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 31 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 57 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 57 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 57 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiClientTokenUsage(), and CreateSyncInt64MetricGenAiClientTokenUsage().
|
staticconstexpr |
Definition at line 57 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 83 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 83 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiServerRequestDuration(), and CreateSyncInt64MetricGenAiServerRequestDuration().
|
staticconstexpr |
Definition at line 83 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 83 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 110 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 110 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 110 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiServerTimePerOutputToken(), and CreateSyncInt64MetricGenAiServerTimePerOutputToken().
|
staticconstexpr |
Definition at line 110 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 137 of file includes/opentelemetry/semconv/gen_ai_metrics.h.
Referenced by CreateSyncDoubleMetricGenAiServerTimeToFirstToken(), and CreateSyncInt64MetricGenAiServerTimeToFirstToken().
|
staticconstexpr |
Definition at line 137 of file includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 137 of file 9.2/includes/opentelemetry/semconv/gen_ai_metrics.h.
|
staticconstexpr |
Definition at line 137 of file 9.2/includes/opentelemetry/semconv/incubating/gen_ai_metrics.h.