compare()
returns fewer exemplars than expected
#4284
Labels
area/query
keepalive
Label to exempt Issues / PRs from stale workflow
type/bug
Something isn't working
Context
Exemplars were added to TraceQL metrics in #3824. Queries such as
{} | rate()
,{} | quantile_over_time(duration, 0,99)
,{} | compare({status=error})
return exemplars if enabled.Exemplars in
compare()
are only returned for the series__meta_type="selection_total"
and__meta_type="baseline_total"
, since every other series is a subset of the totals, and exemplars carry all labels of the query.Problem
Queries that use
compare()
are inconsistent in returning exemplars—usually return very few exemplars and only in some series, instead of in all series.There are a couple of potential issues at hand here:
CallbackPredicate
might be stopping collection too aggressively. The callback might be quitting before enough exemplars are collected.The text was updated successfully, but these errors were encountered: