<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/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>
