Add an observability trace (or a specific span subtree) as a row in the draft dataset version for a dataset group. You can export an entire trace (anchored at the earliest root span) or choose a specific span to anchor on — in which case that span and its direct children become the dataset columns.Documentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
span_id to export a specific span subtree instead of the full trace root.mode field in the response indicates whether the row was created in trace mode (root anchor) or span mode (chosen anchor).ID of the dataset group to add the trace row to.
x >= 1ID of the trace to add as a dataset row.
1Optional span ID. When omitted the row anchors on the trace's earliest root span (Trace export). When provided the row anchors on that span and its direct children become the columns (Span export).
1Trace added to draft dataset.