tikv / rust-prometheus

Prometheus instrumentation library for Rust applications
Apache License 2.0
1.04k stars 182 forks source link

Add Number and Atomic impls for usize #496

Open saethlin opened 11 months ago

saethlin commented 11 months ago

This makes it possible to use AtomicUsize in metrics. Our primary use of metrics is storing the lengths of various things, so nearly everywhere we update metrics we currently have to write a conversion. This lets us delete the conversions.