Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Import OTLP traces

/v1/tracesPOST
Export traces as OTLP JSON or protobuf, optionally gzip-compressed. Both wire and expanded payloads have a 262,144-byte limit. Retrying identical source records is safe. The ingestion credential selects the workspace. OTLP mapping and capture policy.
Authorization
ApiKey *Bearer <token>
Workspace API key. Create a key with the scope named by the operation. API keys use separate sharer identities; replacement keys do not inherit sharing ownership.
Request Bodyapplication/jsonrequired
resourceSpans *object[]
Show item properties
resource?object
Show properties
attributes?object[]
Show item properties
key *string
value *object
Show properties
stringValue?string
intValue?integer | string
boolValue?boolean
doubleValue?number
arrayValue?object
kvlistValue?object
bytesValue?string
scopeSpans *object[]
Show item properties
spans *object[]
Show item properties
traceId *string
Nonzero trace ID.
Pattern: ^[a-fA-F0-9]{32}$
spanId *string
Nonzero span ID.
Pattern: ^[a-fA-F0-9]{16}$
parentSpanId?string
Nonzero span ID.
Pattern: ^[a-fA-F0-9]{16}$
name?string
startTimeUnixNano *string | integer
Unix timestamp in nanoseconds.
endTimeUnixNano?string | integer
Unix timestamp in nanoseconds.
attributes?object[]
Show item properties
key *string
value *object
links?object[]
Max items: 32
Show item properties
traceId *string
Nonzero trace ID.
Pattern: ^[a-fA-F0-9]{32}$
spanId *string
Nonzero span ID.
Pattern: ^[a-fA-F0-9]{16}$
Response
200 · Success
Type: object
400 · Invalid export
code?integer
message?string
401 · Missing or invalid credential
code?integer
message?string
403 · Insufficient scope
code?integer
message?string
409 · Conflicting record
code?integer
message?string
410 · Session removed, unshared or expired
error *string
413 · Export exceeds the size limit
code?integer
message?string
415 · Unsupported content type or encoding
code?integer
message?string
429 · Rate limit exceeded
code?integer
message?string
503 · Service unavailable
code?integer
message?string
Request example
curl -X POST "https://app.halfspan.com/v1/traces" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "resourceSpans": [] }'
Response example
{}