Module semantic_conventions

Module semantic_conventions 

Source
Expand description

OpenTelemetry Semantic Conventions for Generative AI

This module defines constants for OpenTelemetry semantic conventions for generative AI operations, following the official specification: https://opentelemetry.io/docs/specs/semconv/gen-ai/

We use the official attribute names from the opentelemetry-semantic-conventions crate and define our own operation values until they are officially available.

Modules§

operation_names
Standard operation names for OpenAI APIs
output_types
Output type constants
service_tiers
Service tier constants
systems
System/provider name constants

Constants§

GEN_AI_OPERATION_NAME
The name of the operation being performed.
GEN_AI_REQUEST_MODEL
The name of the GenAI model a request is being made to.
GEN_AI_SYSTEM
The Generative AI product as identified by the client or server instrumentation.