Saltar al contenido principal
GET
/
v1
/
trace
/
call
/
{call_id}
Get trace for a call
import requests

url = "https://api.diga.io/v1/trace/call/{call_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "id": "<string>",
  "span_count": 123,
  "call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "root_service": "<string>",
  "start_time": "2023-11-07T05:31:56Z",
  "end_time": "2023-11-07T05:31:56Z",
  "duration_ms": 123,
  "spans": [
    {
      "id": "<string>",
      "operation_name": "<string>",
      "service_name": "<string>",
      "start_time": "2023-11-07T05:31:56Z",
      "duration_ms": 123,
      "parent_span_id": "<string>",
      "status": "<string>",
      "tags": {},
      "children": [
        "<unknown>"
      ]
    }
  ]
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parámetros de ruta

call_id
string<uuid>
requerido

The call ID to get the trace for

Respuesta

Successful Response

Response schema for a complete trace.

id
string
requerido

The unique identifier for this trace.

span_count
integer
requerido

The number of spans in this trace.

call_id
string<uuid> | null

The DIGA call ID associated with this trace.

root_service
string | null

The service that initiated the trace.

start_time
string<date-time> | null

When the trace started.

end_time
string<date-time> | null

When the trace ended.

duration_ms
number | null

Total duration of the trace in milliseconds.

spans
SpanResponse · object[]

Hierarchical tree of spans with parent-child relationships.