sapling/eden/mononoke/common/rust
Thomas Orozco b766407054 mononoke/caching_ext: unify our cache stats reporting
Summary:
I'd like to lower the bar to entry as much as possible to use caching in e.g.
mappings. One thing that's a little annoying to setup right now is stats. Let's
unify those.

This does mean the stats names for mappings that had them will change, but I
think that's probably OK here.

A few notes about the implementation:

- I made the stats objects singletons, because ultimately that *is* what stats
  are under the hood.
- I made a macro to define the singleton because that was otherwise really
  verbose.

Reviewed By: farnz

Differential Revision: D25461182

fbshipit-source-id: f30d0908c40d8e0010c546ec95a385a06d557757
2020-12-10 12:01:45 -08:00
..
caching_ext mononoke/caching_ext: unify our cache stats reporting 2020-12-10 12:01:45 -08:00
slog_ext Update formatter to rustfmt 2.0 2020-09-09 07:52:33 -07:00
sql_ext mononoke/sql: fix connection to the sharded db 2020-11-19 13:16:01 -08:00