Skip to main content

reset

Function reset 

Source
pub fn reset()
Expand description

Reset per-conversion telemetry WITHOUT reading it.

take is the only other reset, and it is called from the binaries’ end-of-job finalizers — which return early when no telemetry sink is configured (write_telemetry_record: let Some(path) = path else { return }). So in a process that converts repeatedly with telemetry off (the --server LSP, a test harness), state carried over between documents. That was self-correcting while every counter was set; it is not once any counter accumulates — streaming’s add_formulae must sum across segments, so it would sum across DOCUMENTS too. Phase timings had the same latent flaw.