43 releases

0.21.1 Jul 2, 2023
0.20.1 Jul 22, 2022
0.18.1 Mar 11, 2022
0.17.1 Dec 16, 2021
0.0.2 Sep 3, 2015

#13 in Debugging

Download history 99457/week @ 2023-08-14 106697/week @ 2023-08-21 108227/week @ 2023-08-28 104130/week @ 2023-09-04 108525/week @ 2023-09-11 117308/week @ 2023-09-18 116022/week @ 2023-09-25 120843/week @ 2023-10-02 135617/week @ 2023-10-09 119909/week @ 2023-10-16 117034/week @ 2023-10-23 118607/week @ 2023-10-30 114165/week @ 2023-11-06 128992/week @ 2023-11-13 108207/week @ 2023-11-20 122998/week @ 2023-11-27

478,701 downloads per month
Used in 204 crates (131 directly)

MIT license

96KB
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.9–1.6MB
~30K SLoC