跳到内容
sigiro
Esc
↑↓导航↵打开⌘J预览

Fetch one whole trace

Every span of one trace, parent links included, so a caller can rebuild the tree. Trace IDs come from any SQL query over sigiro_spans.

GET/v1/traces/{trace_id}
路径参数
trace_idstring必填

Trace ID

响应
200

Trace detail

critical_pathstring[]必填
error_countinteger<int64>必填
root_spanSpanDetail必填

Individual span detail in trace detail response.

显示属性
duration_usinteger<int64>必填
events_jsonstring | null
links_jsonstring | null
parent_span_idstring | null
resource_attributesstring | null
scope_namestring | null
scope_versionstring | null
service_namestring必填
span_attributesstring | null
span_idstring必填
span_kindinteger<int32> | null
span_namestring必填
status_codeinteger<int32>必填
timestampstring必填
trace_idstring必填
trace_statestring | null
service_breakdownServiceBreakdownEntry[]必填
显示属性
ServiceBreakdownEntry 数组
duration_usinteger<int64>必填

Cumulative inclusive duration of the service's spans, in microseconds.

percentagenumber<double>必填

Percentage of cumulative inclusive span duration across all services.

servicestring必填
servicesstring[]必填
span_countinteger<int64>必填
spansSpanDetail[]必填
显示属性
SpanDetail 数组
duration_usinteger<int64>必填
events_jsonstring | null
links_jsonstring | null
parent_span_idstring | null
resource_attributesstring | null
scope_namestring | null
scope_versionstring | null
service_namestring必填
span_attributesstring | null
span_idstring必填
span_kindinteger<int32> | null
span_namestring必填
status_codeinteger<int32>必填
timestampstring必填
trace_idstring必填
trace_statestring | null
total_duration_usinteger<int64>必填

Elapsed wall-clock time from the earliest span start to the latest span end, in microseconds.

trace_idstring必填
请求
curl -X GET '/v1/traces/string' \
  -H 'Accept: application/json'
响应
{
  "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"
}

这个页面有帮助吗?