List
List
client.telemetry.traces.list(TraceListParamsquery, RequestOptionsoptions?): dataarraylinksPaginationLinksTraceListResponse
get/v1/telemetry/traces
Get OpenTelemetry traces within a specified time window with flexible pagination options: Pass in only the end time to paginate backwards from there. Pass in a start time to paginate backwards from now until the start time. Pass in both to get resources within the time window. Choose to return in end_time order instead to view traces that completed in a window or since a time. Filter additionally by branch_ids or file_id.
Parameters
querydirectionunionlimitnumberbranch_idsarrayendstringfile_idstringorder_byunionstartstringTraceListParams
Returns
TraceListResponse
A paginated result set
import ValTown from '@valtown/sdk';
const client = new ValTown();
const traces = await client.telemetry.traces.list({ direction: 'asc', limit: 1 });
console.log(traces.data);
200 Example
{
"data": [
{
"attributes": [
{
"key": "key",
"value": {
"arrayValue": {},
"boolValue": true,
"bytesValue": "bytesValue",
"doubleValue": 0,
"intValue": "intValue",
"kvlistValue": {},
"stringValue": "stringValue"
}
}
],
"endTimeUnixNano": "endTimeUnixNano",
"name": "name",
"startTimeUnixNano": "startTimeUnixNano",
"status": {
"code": 0,
"message": "message"
},
"traceId": "traceId"
}
],
"links": {
"self": "https://example.com",
"next": "https://example.com",
"prev": "https://example.com"
}
}