55 releases

0.24.6 May 13, 2026
0.24.3 Nov 28, 2025
0.24.2 Apr 20, 2025
0.24.1 Nov 26, 2024
0.0.2 Sep 3, 2015

#12 in Debugging

Download history 1437560/week @ 2026-07-22 1533863/week @ 2026-07-29 1480842/week @ 2026-08-05 1559929/week @ 2026-08-12 1613763/week @ 2026-08-19 1702342/week @ 2026-08-26 1786946/week @ 2026-09-02 1872741/week @ 2026-09-09 2085816/week @ 2026-09-16 2152390/week @ 2026-09-23 2198133/week @ 2026-09-30 2298275/week @ 2026-10-07 2425725/week @ 2026-10-14 2591902/week @ 2026-10-21 2763449/week @ 2026-10-28 3248136/week @ 2026-11-04

11,460,285 downloads per month
Used in 2,903 crates (1,391 directly)

MIT license

155KB
2.5K SLoC

metrics

conduct-badge downloads-badge release-badge docs-badge license-badge

metrics is a lightweight metrics facade.

code of conduct

NOTE: All conversations and contributions to this project shall adhere to the Code of Conduct.

what's it all about?

metrics provides macros, similar to the log crate, that let library and executable authors instrument their code by collecting metrics -- incrementing counters, gauges, and histograms -- about their code, deferring the collecting and export of these metrics to whatever the installed metrics library is.

Dependencies

~250–520KB