{ "opencollection": "1.0.0", "info": { "name": "PromptLayer Evaluations & Datasets Spans & Traces API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "X-API-KEY", "value": "{{X-API-KEY}}", "placement": "header" } }, "items": [ { "info": { "name": "Spans & Traces", "type": "folder" }, "items": [ { "info": { "name": "Ingest spans in bulk", "type": "http" }, "http": { "method": "POST", "url": "https://api.promptlayer.com/spans-bulk", "body": { "type": "json", "data": "{}" } }, "docs": "Atomically ingests a batch of OpenTelemetry-style spans. Optional per-span `log_request` payloads create associated request logs. If any span fails, the entire batch is rolled back." }, { "info": { "name": "Ingest OTLP traces", "type": "http" }, "http": { "method": "POST", "url": "https://api.promptlayer.com/otlp/v1/traces", "body": { "type": "json", "data": "{}" } }, "docs": "OpenTelemetry Protocol (OTLP) HTTP endpoint for ingesting traces." }, { "info": { "name": "Get a trace", "type": "http" }, "http": { "method": "GET", "url": "https://api.promptlayer.com/traces/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Get a trace" }, { "info": { "name": "Close a trace", "type": "http" }, "http": { "method": "POST", "url": "https://api.promptlayer.com/traces/:id/close", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Closes an open trace so no further spans can be appended." } ] } ], "bundled": true }