Skip to main content

emit

Function emit 

Source
pub fn emit(
    category: ObsCat,
    message: String,
    payloads: Vec<(String, String)>,
    sample: Option<u64>,
    site: u64,
)
Expand description

Emit an event. Honors per-site sampling: with sample = Some(n) and a stable site id, only 1 in every n reaching this site is buffered (the first, then every nth). Sampling is a rendering decision — replay with capture-everything regenerates the full stream.