cURL
curl --request GET \
--url https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"agent": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"spans": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trace": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"has_error": true,
"parent": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"span_type": "text",
"ended_at": "2023-11-07T05:31:56Z"
}
],
"total_spans": 123,
"error": "<string>",
"metadata": "<unknown>"
}Tracing
Get Trace
ViewSet for Trace operations.
IMPORTANT — Memory safety: Traces can have hundreds of spans, each with metadata containing base64 screenshots (1MB+). Never use TraceSerializer or prefetch_related(“spans”) here — that eagerly loads ALL span data and WILL OOM on 2GB instances.
Safe patterns:
- list: TraceListSerializer (no spans, just trace metadata + annotated count)
- retrieve: SpanTreeSerializer with .only() (minimal columns, no metadata)
- create/end: TraceDetailSerializer (no spans at all)
- Individual span detail: fetched separately via SpanViewSet
GET
/
api
/
tracing
/
traces
/
{trace_id}
/
cURL
curl --request GET \
--url https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.orinlabs.org/api/tracing/traces/{trace_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"agent": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"spans": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trace": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"has_error": true,
"parent": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"span_type": "text",
"ended_at": "2023-11-07T05:31:56Z"
}
],
"total_spans": 123,
"error": "<string>",
"metadata": "<unknown>"
}Authorizations
tokenAuthAPIKeyAuth
Token-based authentication with required prefix "Token"
Path Parameters
Response
200 - application/json
Response serializer for trace detail with tree-optimized spans.
Spans use SpanTreeSerializer (minimal fields) for fast initial load. Fetch individual span details via GET /api/tracing/spans/{id}/.