cURL
curl --request GET \ --url https://qyl-api-production.up.railway.app/v1/traces/{traceId}/spans
{ "items": [ { "spanId": "b7ad6b7169203331", "traceId": "0af7651916cd43dd8448eb211c80319c", "name": "<string>", "kind": 0, "startTimeUnixNano": 123, "endTimeUnixNano": 123, "durationNs": 1, "statusCode": 0, "parentSpanId": "b7ad6b7169203331", "sessionId": "<string>", "statusMessage": "<string>", "serviceName": "<string>", "genAiProviderName": "<string>", "genAiRequestModel": "<string>", "genAiResponseModel": "<string>", "genAiInputTokens": 1, "genAiOutputTokens": 1, "genAiTemperature": 1, "genAiStopReason": "<string>", "genAiToolName": "<string>", "genAiToolCallId": "<string>", "genAiCostUsd": 1, "attributesJson": "<string>", "resourceJson": "<string>", "createdAt": "2023-11-07T05:31:56Z" } ], "has_more": true, "next_cursor": "<string>", "prev_cursor": "<string>" }
Get spans for a trace
Unique trace identifier (32 lowercase hex characters)
32
^[a-f0-9]{32}$
"0af7651916cd43dd8448eb211c80319c"
Page size
1 <= x <= 1000
Cursor
The request has succeeded.
Cursor-based paginated response wrapper
List of items in this page
Show child attributes
Whether there are more items available
Cursor for the next page (null if no more pages)
Cursor for the previous page (null if first page)
Was this page helpful?