metrics-lib 0.8.6

Lock-free, high-performance metrics for Rust: counters, gauges, timers, rate meters, async timing, adaptive sampling, and system health.
Documentation
1
2
3
4
5
6
7
8
fn main() {
    // Allow using `#[cfg(tarpaulin)]` in code without triggering unexpected cfg warnings.
    // This keeps CI logs clean when tarpaulin isn't present and preserves MSRV 1.70.0.
    println!("cargo:rustc-check-cfg=cfg(tarpaulin)");
    // Allow using `cfg!(coverage)` in tests to relax bounds under coverage instrumentation.
    // Registers the `coverage` cfg with rustc to avoid `unexpected_cfgs` warnings.
    println!("cargo:rustc-check-cfg=cfg(coverage)");
}