GenAI

Get GenAI span details for a specific trace.

Changed on

duration_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.

get/otel/genai/traces/{project_id}/{trace_id}

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

Project ID

trace_idstring required

Trace ID (hex)

Query parameters

start_timestring

Window start (RFC 3339); pair with end_time, max 31 days

end_timestring

Window end (RFC 3339); pair with start_time, max 31 days

Response

GenAI trace span details

event_countinteger required
span_countinteger required
trace_idstring required

Changes

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status