Create a dataset

Create a new dataset, either empty or populated from existing spans using filters and sampling.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
namestringRequired
Dataset name.
descriptionstringOptional
Dataset description.
samplingintegerOptionalDefaults to 100

Sampling rate (0-1). Fraction of matching spans to include.

start_timestringOptional

Start of time range for selecting spans (ISO 8601).

end_timestringOptional

End of time range for selecting spans (ISO 8601).

is_emptybooleanOptional

Create an empty dataset (no initial spans).

initial_log_filtersobjectOptional

Filters for selecting initial spans. Same format as Filters API.

Response

Created dataset.
idstring
Dataset ID.
namestring
Dataset name.
descriptionstring
Dataset description.
typestring
Dataset type.
statusenum
Dataset status.
Allowed values:
log_countinteger
Number of spans in the dataset.
created_atdatetime
Creation timestamp.

Errors

401
Unauthorized Error