Skip to main content

extrapolation_factor

Function extrapolation_factor 

Source
pub(super) fn extrapolation_factor(
    span: ExtrapolationSpan,
    eval_ts: i64,
    range_ms: i64,
    is_counter: bool,
    is_rate: bool,
    zero_point: Option<f64>,
) -> f64
Expand description

The factor extrapolatedRate scales the sampled increase by, for floats and native histograms alike. zero_point is the first value over the increase, given only when a counter is extrapolated to zero; 0 puts the zero point at span.sampled_from, as a synthetic zero does. A zero sampled interval answers 1.0 (1 / range for a rate).