<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">

<!-- =============================================================== -->
<!-- Mixin the Statistics Handler                                    -->
<!-- =============================================================== -->

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <!-- Collects request stats -->
  <Call name="insertHandler">
    <Arg>
      <New id="StatisticsHandler" class="org.eclipse.jetty.server.handler.StatisticsHandler"/>
    </Arg>
  </Call>
  <!-- Collects connection stats -->
  <Call name="addBeanToAllConnectors">
    <Arg>
      <New class="org.eclipse.jetty.io.ConnectionStatistics"/>
    </Arg>
  </Call>
</Configure>
