Catalina JFR
A Catalina valve that generates Flight Recorder events. Unlike a filter based approach a valve based approach also generate events for internal servlets like the DefaultServlet
and JasperServlet
.
This project requires Java 11.
Usage
Copy the jar to ${tomcat.home}/lib
and add the following valve to server.xml
.
<Valve className="com.github.marschall.catalina.jfr.JfrValve" />
Correlating Dispatches
A single request may traverse the servlet chain multiple times, either because of a server side redirect or because of asynchronous processing. We generate a unique exchangeId for every request so that multiple dispatches of the same request can be correlated.