Get GenAI span details for a specific trace.
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/{project_id}/{trace_id}
- Auth: HTTP bearer
Path parameters
Project ID
Trace ID (hex)
Query parameters
Window start (RFC 3339); pair with end_time, max 31 days
Window end (RFC 3339); pair with start_time, max 31 days
Response
GenAI trace span details
Changes
- info
added the new optional
queryrequest parameterend_time - info
added the new optional
queryrequest parameterstart_time - 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
deleted the
queryrequest parameterend_time - warning
deleted the
queryrequest parameterstart_time - 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