List<StatisticsEntry> takeStatistics() {
        if (reporterEnabled)
            throw new IllegalStateException("Cannot take consistent snapshot while reporter is enabled");
        var ret = new ArrayList<StatisticsEntry>();
        consume((metric, value) -> ret.add(new StatisticsEntry(metric, value)));
        return ret;
    }
A {@link RequestLog} implementation that collects statistics like HTTP response types aggregated by category.
Implemented as a {@link RequestLog} instead of {@link org.eclipse.jetty.server.handler.EventsHandler} to ensure
that 400 responses from e.g. invalid request headers are also included.

@author ollivir
@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/MetricAggregatingRequestLog.java