Skip to main content
GET
/
api
/
v1
/
traces
/
stats
Get trace statistics
curl --request GET \
  --url https://control-plane.kubiya.ai/api/v1/traces/stats \
  --header 'Authorization: Bearer <token>'
{
  "total_traces": 123,
  "success_count": 123,
  "error_count": 123,
  "running_count": 123,
  "error_rate": 123,
  "total_spans": 123,
  "avg_duration_ms": 123,
  "period_start": "2023-11-07T05:31:56Z",
  "period_end": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Enter your Kubiya API token (format: Bearer )

Query Parameters

time_from
string<date-time> | null

Start of time range

time_to
string<date-time> | null

End of time range

Response

Successful Response

Trace statistics response

total_traces
integer
required
success_count
integer
required
error_count
integer
required
running_count
integer
required
error_rate
number
required
total_spans
integer
required
avg_duration_ms
number | null
period_start
string<date-time> | null
period_end
string<date-time> | null