… we calculate these metrics by using a cumulative sum as it is more efficient for multiple percentile thresholds
a top-level module export.
backend. Also only clear counters and timers after flushing stats to each backend.
module. This provides a basic framework for adding multiple, pluggable, backends for persisting stats.