مرجع API
ردیابی
مسیر یک درخواست: فانکشن، دیتابیس، کش و fetch.
توضیح هر مسیر به انگلیسی است، همان متنی که مرجع از کد ساخته میشود. مسیرها، نام فیلدها و کدها هماناند که در درخواست مینویسید.
GET
/v1/tracesRecent request traces#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
projectstringکوئریa project's name
statusstringکوئری200, 404, 2xx, 4xx or 5xx
errorstringکوئری1: only traces with an error
min_msintegerکوئریslower than
pathstringکوئریpath prefix
fromstring (date-time)کوئریtime
tostring (date-time)کوئریtime
limitintegerکوئری1 to 200
beforestringکوئریthe previous next_before
پاسخ
200object
tracesTraceSummary[]trace_idstringprojectobjectnamestringkindstring
started_atstring (date-time)duration_msnumbermethodstring | nullpathstring | nullstatusinteger | nullversioninteger | nullerrorbooleanspan_countinteger
retention_hoursintegerplanstringnext_beforestring | null
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Bad request: bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/traces" \
-H "Authorization: Bearer $KEY"GET
/v1/traces/{trace_id}One trace with its spans in waterfall order#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
trace_idstringمسیرالزامی32 hex characters
پاسخ
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
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/traces/trace_id" \
-H "Authorization: Bearer $KEY"