Datasets API
Add Trace to Dataset
POST
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.
Behavior Notes
- If no draft dataset version exists for the group, one is automatically created and seeded from the most recent published version’s rows.
- The trace and dataset group must belong to the same workspace.
- Use
span_idto export a specific span subtree instead of the full trace root. - The
modefield in the response indicates whether the row was created intracemode (root anchor) orspanmode (chosen anchor).
Related
Authorizations
Body
application/json
ID of the dataset group to add the trace row to.
Required range:
x >= 1ID of the trace to add as a dataset row.
Minimum string length:
1Optional span ID. When provided, the row is built from this span and its direct children become the dataset columns. When omitted, the full trace is added as the row.
Minimum string length:
1
