Skip to main content

find_latest_trace_ids

Function find_latest_trace_ids 

Source
async fn find_latest_trace_ids(
    ctx: QueryContextRef,
    instance: &Instance,
    filters: Vec<Expr>,
    limit: usize,
    tags: Option<HashMap<String, Value>>,
) -> Result<Output>
Expand description

Returns the ids of the limit traces whose latest span matching filters and tags is the most recent, newest first.

Ordering before the limit keeps a search that matches more traces than the limit deterministic.