Skip to main content

GEN_AI_PROVIDER_NAME

Constant GEN_AI_PROVIDER_NAME 

pub const GEN_AI_PROVIDER_NAME: &'static str;
👎Deprecated:

{note: Moved to the OpenTelemetry GenAI semantic conventions repository. , reason: uncategorized}

Available on crate features opentelemetry and semconv_experimental only.
Expand description

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

§Notes

The attribute SHOULD be set based on the instrumentation’s best knowledge and may differ from the actual model provider.

Multiple providers, including Azure OpenAI, Gemini, and AI hosting platforms are accessible using the OpenAI REST API and corresponding client libraries, but may proxy or host models from different providers.

The gen_ai.request.model, gen_ai.response.model, 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