45 releases

0.22.1 Feb 11, 2024
0.22.0 Dec 24, 2023
0.21.1 Jul 2, 2023
0.20.1 Jul 22, 2022
0.0.2 Sep 3, 2015

#33 in Debugging

Download history 119554/week @ 2023-11-01 114850/week @ 2023-11-08 130663/week @ 2023-11-15 107710/week @ 2023-11-22 149253/week @ 2023-11-29 141291/week @ 2023-12-06 131079/week @ 2023-12-13 100681/week @ 2023-12-20 71305/week @ 2023-12-27 132605/week @ 2024-01-03 157679/week @ 2024-01-10 193504/week @ 2024-01-17 166910/week @ 2024-01-24 189146/week @ 2024-01-31 211751/week @ 2024-02-07 139529/week @ 2024-02-14

744,706 downloads per month
Used in 227 crates (148 directly)

MIT license

110KB
1.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

~0.6–1MB
~17K SLoC