curl --request POST \
--url https://gateway.errorbar.ai/v1/traces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-protobuf' \
--data '<string>'import requests
url = "https://gateway.errorbar.ai/v1/traces"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-protobuf"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/x-protobuf'},
body: '<string>'
};
fetch('https://gateway.errorbar.ai/v1/traces', 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://gateway.errorbar.ai/v1/traces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/x-protobuf"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway.errorbar.ai/v1/traces"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/x-protobuf")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway.errorbar.ai/v1/traces")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/x-protobuf")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.errorbar.ai/v1/traces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/x-protobuf'
request.body = "<string>"
response = http.request(request)
puts response.read_body{
"accepted": 123,
"duplicate": 123,
"spans_stored": 123,
"skipped_not_gen_ai": 123,
"skipped_no_content": 123,
"content_logging": "enabled",
"stored_as_structure_only": 123,
"unrecognized_attr_namespaces": {}
}OTLP trace ingest
Accepts standard OpenTelemetry traces (OTLP/HTTP, protobuf or JSON; 4 MB batch cap) at the GATEWAY host: https://gateway.errorbar.ai/v1/traces. Point any OTel exporter here with Authorization: Bearer <key>.
Model-call spans are recognized in the official gen_ai.* conventions plus the Traceloop, Vercel ai.*, and OpenInference dialects, normalized to one shape, and stored as gradeable log entries when request logging is enabled; all other spans (and failed model calls) are kept as trace structure. Ingest is idempotent under exporter retries and rate-limited in its own bucket, separate from inference.
See the OTLP trace ingest reference for the full contract.
curl --request POST \
--url https://gateway.errorbar.ai/v1/traces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-protobuf' \
--data '<string>'import requests
url = "https://gateway.errorbar.ai/v1/traces"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-protobuf"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/x-protobuf'},
body: '<string>'
};
fetch('https://gateway.errorbar.ai/v1/traces', 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://gateway.errorbar.ai/v1/traces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/x-protobuf"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway.errorbar.ai/v1/traces"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/x-protobuf")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway.errorbar.ai/v1/traces")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/x-protobuf")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.errorbar.ai/v1/traces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/x-protobuf'
request.body = "<string>"
response = http.request(request)
puts response.read_body{
"accepted": 123,
"duplicate": 123,
"spans_stored": 123,
"skipped_not_gen_ai": 123,
"skipped_no_content": 123,
"content_logging": "enabled",
"stored_as_structure_only": 123,
"unrecognized_attr_namespaces": {}
}Authorizations
Your workspace API key, e.g. sk_sovereign_..., sent as Authorization: Bearer <key>.
Body
The body is of type file.
Response
Per-batch accounting.
Gradeable log rows written.
Spans dropped as exporter retries.
Structure rows written.
Spans unstorable in any form.
enabled, disabled Model calls kept as structure: logging off, redacting exporter, or a failed call.
Attribute-KEY namespaces seen but not mapped (never values).