API reference
Traces
Request traces: a waterfall of the function, database, cache and fetch spans of one request.
GET
/v1/tracesRecent request traces#
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
projectstringquerya project's name
statusstringquery200, 404, 2xx, 4xx or 5xx
errorstringquery1: only traces with an error
min_msintegerqueryslower than
pathstringquerypath prefix
fromstring (date-time)querytime
tostring (date-time)querytime
limitintegerquery1 to 200
beforestringquerythe previous next_before
Response
200object
tracesTraceSummary[]trace_idstringprojectobjectnamestringkindstring
started_atstring (date-time)duration_msnumbermethodstring | nullpathstring | nullstatusinteger | nullversioninteger | nullerrorbooleanspan_countinteger
retention_hoursintegerplanstringnext_beforestring | null
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/traces" \
-H "Authorization: Bearer $KEY"GET
/v1/traces/{trace_id}One trace with its spans in waterfall order#
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
trace_idstringpathrequired32 hex characters
Response
200Trace
trace_idstringprojectobjectnamestringkindstring
started_atstring (date-time)duration_msnumbermethodstring | nullpathstring | nullstatusinteger | nullversioninteger | nullerrorbooleanspan_countintegerduration_usintegerspansobject[]span_idstringparent_idstring | nullkindstringone of
request,function,database,cache,fetch,storage,othernamestringstart_msnumberduration_msnumbererrorbooleanattrsobjectdepthintegerleft_pctnumberwidth_pctnumber
span_kindsmap of integer
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/traces/trace_id" \
-H "Authorization: Bearer $KEY"