LLMAttributes
Normalized LLM-specific attributes extracted from span attributes
The model requested for the LLM call
The LLM provider name (e.g., openai, anthropic)
Number of input/prompt tokens
Number of output/completion tokens
Total cost of the LLM operation in dollars
Type of LLM operation (chat, embeddings, text_completion)
Type of output (e.g., text)
Name of the SDK that generated the trace (openllmetry, openlit)
Version of the SDK
System prompt/instructions
User prompt/message
LLM output/completion message
Total request duration in milliseconds (from span duration)
Time to generate first token in milliseconds (prompt processing/prefill time)
Average time per output token in milliseconds (decode time)
Total inference time in milliseconds (output_tokens * time_per_output_token)
{
"request_model": "string",
"provider_name": "string",
"input_tokens": 0,
"output_tokens": 0,
"total_cost": "string",
"operation_name": "string",
"output_type": "string",
"sdk_name": "string",
"sdk_version": "string",
"system_prompt": "string",
"user_prompt": "string",
"output_message": "string",
"total_duration_ms": 0,
"time_to_first_token_ms": 0,
"time_per_output_token_ms": 0,
"inference_duration_ms": 0
}