Create a dataset
Create a new dataset, either empty or populated from existing spans using filters and sampling.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Request
This endpoint expects an object.
name
Dataset name.
description
Dataset description.
sampling
Sampling rate (0-1). Fraction of matching spans to include.
start_time
Start of time range for selecting spans (ISO 8601).
end_time
End of time range for selecting spans (ISO 8601).
is_empty
Create an empty dataset (no initial spans).
initial_log_filters
Filters for selecting initial spans. Same format as Filters API.
Response
Created dataset.
id
Dataset ID.
name
Dataset name.
description
Dataset description.
type
Dataset type.
status
Dataset status.
Allowed values:
log_count
Number of spans in the dataset.
created_at
Creation timestamp.
Errors
401
Unauthorized Error