curl --request GET \
--url https://api.staging.qyl.dev/api/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>",
"baggageJson": "<string>",
"schemaUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"next_cursor": "<string>",
"prev_cursor": "<string>"
}Get spans for a trace
curl --request GET \
--url https://api.staging.qyl.dev/api/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>",
"baggageJson": "<string>",
"schemaUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"next_cursor": "<string>",
"prev_cursor": "<string>"
}Unique trace identifier (32 lowercase hex characters)
32^[a-f0-9]{32}$"0af7651916cd43dd8448eb211c80319c"
Page size
1 <= x <= 1000Cursor
The request has succeeded.
Cursor-based paginated response wrapper
Was this page helpful?