otlp
Ingest Traces (OTLP)
Changed onpost/v1/traces
Request
- Base URLhttps://docs.promptlayer.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
close_afterboolean
When true, all trace IDs in the request are marked as closed after ingestion. Subsequent span writes for those traces will be rejected with HTTP 409. Defaults to false.
Headers
Content-Type'application/x-protobuf' | 'application/json' required
The encoding of the request body. Use application/x-protobuf for binary protobuf or application/json for JSON.
Content-Encoding'gzip'
Set to gzip if the request body is gzip-compressed.
Request body
Response
Successful Response. When using protobuf, the response is a binary ExportTraceServiceResponse. When using JSON, the response is a JSON object.
Changes
- info
added the new optional
queryrequest parameterclose_after - info
added the non-success response with the status
- info