note: this uses a semi-bastardized version of the metrics library from
syncstorage-rs. KV doesn't quite work right yet due to ownership
issues, but that's only for logging issues anyway.
Debating fixing up the KV bits for tags. It would be nice to be able to dump these via slog messages (like we do for syncstorage), but it's not critical.