54 releases

0.24.3 Nov 28, 2025
0.24.2 Apr 20, 2025
0.24.1 Nov 26, 2024
0.23.1 Apr 16, 2025
0.0.2 Sep 3, 2015

#10 in Debugging

Download history 665665/week @ 2025-08-26 867915/week @ 2025-09-02 826895/week @ 2025-09-09 603143/week @ 2025-09-16 632346/week @ 2025-09-23 658947/week @ 2025-09-30 702782/week @ 2025-10-07 662817/week @ 2025-10-14 906769/week @ 2025-10-21 999845/week @ 2025-10-28 1129985/week @ 2025-11-04 1018749/week @ 2025-11-11 1048176/week @ 2025-11-18 794738/week @ 2025-11-25 933501/week @ 2025-12-02 1071086/week @ 2025-12-09

4,019,701 downloads per month
Used in 736 crates (445 directly)

MIT license

135KB
2K 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

~0.7–1.2MB
~17K SLoC