Fetch one whole trace
Every span of one trace, parent links included, so a caller can rebuild the tree. Trace IDs come from the sampled spans in an investigation, or from any SQL query over sigiro_spans.
Request
curl -X GET "https://api.sigiro.com/v1/traces/{trace_id}"- Auth
- None. Self-hosted default; the hosted service requires a tenant key.
Parameters
| Name | Type | Description |
|---|---|---|
| trace_idrequired | string | Trace ID |
Responses
200Trace detail
{
"critical_path": [
"string"
],
"error_count": 0,
"root_span": {
"duration_us": 0,
"events_json": "string",
"links_json": "string",
"parent_span_id": "string",
"resource_attributes": "string",
"scope_name": "string",
"scope_version": "string",
"service_name": "string",
"span_attributes": "string",
"span_id": "string",
"span_kind": 0,
"span_name": "string",
"status_code": 0,
"timestamp": "string",
"trace_id": "string",
"trace_state": "string"
},
"service_breakdown": [
{
"duration_us": 0,
"percentage": 0.1,
"service": "string"
}
],
"services": [
"string"
],
"span_count": 0,
"spans": [
{
"duration_us": 0,
"events_json": "string",
"links_json": "string",
"parent_span_id": "string",
"resource_attributes": "string",
"scope_name": "string",
"scope_version": "string",
"service_name": "string",
"span_attributes": "string",
"span_id": "string",
"span_kind": 0,
"span_name": "string",
"status_code": 0,
"timestamp": "string",
"trace_id": "string",
"trace_state": "string"
}
],
"total_duration_us": 0,
"trace_id": "string"
}Every field and constraint is in /openapi.json, which is the document this page is generated from.