Skip to main content

run

Function run 

Source
pub fn run(batch: Batch, sockets: Vec<UnixDatagram>) -> Stats
Expand description

Drive one batch of sampled DogStatsD lines to every socket.

A producer samples up to ~10k lines at the batch’s vibe and queues them; a consumer ships each line to every socket and tallies per-socket sends. The returned Stats anchor the caller’s assertions.

§Panics

Panics if the producer or consumer thread panics.