본문으로 건너뛰기
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"
}

이 페이지가 도움이 되었나요?