v2

latestOpenAPI 3.1.02026-07-26143251806.6 KB
datasets

Add Trace to Draft Dataset

post/api/public/v2/dataset-versions/add-trace

Request body

dataset_group_idinteger required

ID of the dataset group to add the trace row to.

trace_idstring required

ID of the trace to add as a dataset row.

span_idstring nullable

Optional 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).

Response

Trace added to draft dataset.

successtrue
draft_dataset_idinteger

ID of the draft dataset the trace row was added to.

mode'trace' | 'span'

Indicates whether the row was created from a full trace root (trace) or a specific span subtree (span).