Skip to main content

MAX_EXEMPLARS

Constant MAX_EXEMPLARS 

Source
const MAX_EXEMPLARS: usize = 64;
Expand description

Exemplars kept per series.

An exemplar is one sampled measurement per collection interval per bucket, so a well-behaved exporter sends few — but nothing in OTLP bounds it, and an unbounded array here would make one misconfigured SDK able to inflate every chart response. ponytail: a flat cap, not a reservoir sample; the first ones in a window are as good a sample as any until someone proves otherwise.