Traces
Get trace for a call
Retrieve the distributed trace data for a specific call from Tempo.
GET
Get trace for a call
Autorizaciones
Respuesta
Successful Response
Response schema for a complete trace.
Get trace for a call
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieve the distributed trace data for a specific call from Tempo.
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)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.diga.io/v1/trace/call/{call_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.diga.io/v1/trace/call/{call_id} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/trace/call/{call_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"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>"
]
}
]
}{
"status": "error",
"error_code": "TRACE_NOT_FOUND",
"message": "Trace not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"status": "error",
"error_code": "TEMPO_UNAVAILABLE",
"message": "Tempo service unavailable"
}{
"status": "error",
"error_code": "TEMPO_TIMEOUT_API",
"message": "Timeout fetching trace"
}Successful Response
Response schema for a complete trace.
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)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.diga.io/v1/trace/call/{call_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.diga.io/v1/trace/call/{call_id} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/trace/call/{call_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"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>"
]
}
]
}{
"status": "error",
"error_code": "TRACE_NOT_FOUND",
"message": "Trace not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"status": "error",
"error_code": "TEMPO_UNAVAILABLE",
"message": "Tempo service unavailable"
}{
"status": "error",
"error_code": "TEMPO_TIMEOUT_API",
"message": "Timeout fetching trace"
}