Query GenAI trace summaries — traces containing spans with `gen_ai.*` attributes.
Changed onduration_ms is the only field guaranteed to be milliseconds. gen_ai.* span attributes (e.g. time-to-first-token, token latency) often follow the OTel GenAI semantic conventions, which use seconds (a fractional double), not milliseconds — do not read them as ms without converting.
Request
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/otel/genai/traces
- Auth: HTTP bearer
Query parameters
Project ID
Filter by service name
Filter by AI system (openai, anthropic, etc.)
Filter by model (gpt-4, claude-sonnet-4-20250514, etc.)
Start time (RFC 3339)
End time (RFC 3339)
Max traces to return (default: 50, max: 100)
Offset for pagination
Response
GenAI trace summaries
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning