Ingest OTLP Traces
curl --request POST \
--url https://api.tracelm.ai/api/v2/otlp/v1/tracesimport requests
url = "https://api.tracelm.ai/api/v2/otlp/v1/traces"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.tracelm.ai/api/v2/otlp/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://api.tracelm.ai/api/v2/otlp/v1/traces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.tracelm.ai/api/v2/otlp/v1/traces"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tracelm.ai/api/v2/otlp/v1/traces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tracelm.ai/api/v2/otlp/v1/traces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyObservability v2
Ingest OTLP Traces
Ingest OpenTelemetry OTLP trace payloads directly into TraceLM observability v2
POST
/
api
/
v2
/
otlp
/
v1
/
traces
Ingest OTLP Traces
curl --request POST \
--url https://api.tracelm.ai/api/v2/otlp/v1/tracesimport requests
url = "https://api.tracelm.ai/api/v2/otlp/v1/traces"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.tracelm.ai/api/v2/otlp/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://api.tracelm.ai/api/v2/otlp/v1/traces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.tracelm.ai/api/v2/otlp/v1/traces"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tracelm.ai/api/v2/otlp/v1/traces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tracelm.ai/api/v2/otlp/v1/traces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyAccepts OTLP JSON trace payloads (
resourceSpans) and maps them to canonical obs_* tables.
Auth
Authorization: Bearer <jwt>or project/service-accountX-API-Keywithobservability:write
Headers
Content-Type: application/jsonX-Idempotency-Key: <stable-key>(optional; auto-derived from payload if omitted)
Query Params
project_id(optional if API key can access a single project)
Request Body
{
"resourceSpans": [
{
"resource": {
"attributes": [
{"key": "service.name", "value": {"stringValue": "planner-service"}}
]
},
"scopeSpans": [
{
"spans": [
{
"traceId": "trace-abc",
"spanId": "span-root",
"name": "agent.run",
"startTimeUnixNano": "1710000000000000000",
"endTimeUnixNano": "1710000001000000000"
}
]
}
]
}
]
}
Response
{
"ingest_request_id": "33333333-3333-3333-3333-333333333333",
"schema_version": "2026-02-23",
"status": "succeeded",
"replayed": false,
"accepted_traces": 1,
"accepted_spans": 1,
"accepted_events": 1,
"accepted_links": 0
}
⌘I

