Expand description
Shared API response types for Otelite
This module defines the canonical API response structures used across otelite-server, otelite-cli, and otelite-tui. All types derive both Serialize and Deserialize to support both server-side serialization and client-side deserialization.
Structs§
- Cost
Series Point - A single time-bucketed cost/usage data point
- Error
Rate ByModel - Error-rate summary for LLM spans grouped by model.
- Error
Response - Standard error response for all API endpoints
- Finish
Reason Count - Distribution entry for a single finish reason
- Histogram
Bucket - Histogram bucket
- Histogram
Value - Histogram value
- Latency
Stats - Latency / TTFT percentile statistics for LLM spans, grouped by model.
- LogEntry
- Individual log entry for API response
- Logs
Response - Response for log listing
- Metric
Response - Metric response
- Model
Usage - Token usage for a specific model
- Quantile
- Quantile
- Resource
- Resource information
- Retry
Stats - Retry statistics across LLM spans.
- Span
Entry - Individual span entry
- Span
Event - Span event
- Span
Status - Span status
- Summary
Value - Summary value
- System
Usage - Token usage for a specific system (provider)
- Token
Usage Response - Token usage summary response for GenAI/LLM spans
- Token
Usage Summary - Overall token usage summary
- Tool
Usage - Aggregated per-tool usage for tool-execution spans.
- TopSpan
- A single top-N expensive LLM span
- Trace
Detail - Detailed trace with all spans
- Trace
Entry - Individual trace entry (aggregated from spans)
- Traces
Response - Response for trace listing
Enums§
- Metric
Value - Metric value (can be different types)