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)
  • URL: /api/otel/genai/traces/{project_id}/{trace_id}
  • 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

    • info

      added the new optional query request parameter end_time

    • info

      added the new optional query request parameter start_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

    • warning

      deleted the query request parameter end_time

    • warning

      deleted the query request parameter start_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