Expand description
OpenTelemetry GenAI semantic-convention attribute keys.
Constants§
- AGENT_
ID - AGENT_
NAME - CACHE_
CREATION_ INPUT_ TOKENS - Input tokens written to a provider-managed cache.
- CACHE_
READ_ INPUT_ TOKENS - Input tokens served from a provider-managed cache.
- CONVERSATION_
ID - ERROR_
TYPE - FINISH_
REASONS - INPUT_
MESSAGES - INPUT_
TOKENS - OPERATION
- OTEL_
NAME - The human-readable span name override consumed by OTel bridges.
- OTEL_
STATUS_ CODE tracing-opentelemetryspecial field: sets the OTel span status code ("ERROR"or"OK") when a bridge is attached.- OTEL_
STATUS_ MESSAGE tracing-opentelemetryspecial field: sets the OTel span status description. Used here to carry the exception message, mirroring Python’scapture_exception(observability.py:1407-1411, which callsset_status(description=repr(exception))).- OUTPUT_
MESSAGES - OUTPUT_
TOKENS - PROMPT_
NAME - Low-cardinality prompt name (e.g. for a named/templated prompt).
- PROVIDER_
NAME - Semantic-convention replacement for
SYSTEM, introduced above v1.36.0. Exactly one of the two is emitted, selected bysuper::ObservabilityConfig::use_latest_experimental_gen_ai_semconv. - REASONING_
OUTPUT_ TOKENS - Output tokens spent on reasoning.
- REQUEST_
FREQUENCY_ PENALTY - REQUEST_
MAX_ TOKENS - REQUEST_
MODEL - REQUEST_
PRESENCE_ PENALTY - REQUEST_
SEED - REQUEST_
STOP_ SEQUENCES - REQUEST_
TEMPERATURE - REQUEST_
TOP_ P - RESPONSE_
ID - RESPONSE_
MODEL - SYSTEM
- The provider/system tag, e.g.
"openai". Supplied by the client. - SYSTEM_
INSTRUCTIONS - Content-capture-gated: the system/instructions prompt, JSON-encoded as
[{"type":"text","content":...}](mirrorsobservability.py:1444-1448). - TOOL_
CALL_ ARGUMENTS - Content-capture-gated tool-call arguments (JSON-encoded).
- TOOL_
CALL_ ID - TOOL_
CALL_ RESULT - Content-capture-gated tool-call result (JSON-encoded).
- TOOL_
DEFINITIONS - Content-capture-gated: the request’s tool list, JSON-encoded (mirrors
_tools_to_dict,observability.py:1388-1391). - TOOL_
DESCRIPTION - TOOL_
NAME - TOOL_
TYPE