Tracking
Create Spans Bulk
POST
Create multiple observability spans in one request, optionally creating a request log alongside each span. Use this endpoint when ingesting telemetry data that is not already sent through OTLP.Documentation Index
Fetch the complete documentation index at: https://promptlayer-add-demo-projects.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Behavior Notes
- When
log_requestis provided, the created request log is associated with the span byspan_id. - If
request_start_timeorrequest_end_timeis omitted fromlog_request, PromptLayer inherits the value from the parent span. - If a referenced prompt is not found, the span is still created but the request log creation for that span is skipped.
- Bulk span creation is atomic; if any span creation fails, the entire batch is rolled back.
Related
Authorizations
Body
application/json
Create multiple observability spans in a single request. Each span may include log_request to create an associated request log.

