Skip to main content

FLUSH_BUDGET

Constant FLUSH_BUDGET 

Source
pub(crate) const FLUSH_BUDGET: usize = _; // 1_500usize
Expand description

The most metrics one flush sends.

15 envelopes of 100 metrics is half of the 30-envelope transport queue. A flush only sends once the transport has sent what earlier flushes queued, so metrics hold at most these 15 places, plus at exit one partial envelope left by the flush before. At least 14 places stay free for events, logs, and sessions, even while the transport sends nothing.