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