The
traces client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.Traces subclient queries traces within a project, filtered by time range and an optional filter DSL. Project accepts a name or ID; when a name is passed, Space (name or ID) is required so the SDK can resolve the name to a unique ID.
List Traces
List returns a paginated list of traces matching the given filter. Like spans.List, traces.List uses POST because the filter DSL can be too large for a query string, so the body fields (project, time range, filter) and the query params (limit, cursor) are flattened into a single ListRequest. A trace is returned when any of its spans matches the filter; each trace carries a flat list of spans, so reconstruct the trace tree client-side using each span’s parent_id.
Signature: