public void snapshot(MetricsRecordBuilder builder, boolean all) {
        for (Entry<String, MetricsTag> entry : tags()) {
            builder.add(entry.getValue());
        }
        for (Entry<String, MetricMutable> entry : metrics()) {
            entry.getValue().snapshot(builder, all);
        }
    }