Undertow JFR
An Undertow HttpHandler that generates Flight Recorder events.
This project requires Java 11.
Usage
<subsystem xmlns="urn:jboss:domain:undertow:..." ...>
<!-- ... -->
<server ...>
<!-- ... -->
<host ...>
<!-- ... -->
<filter-ref name="jfr"/>
</host>
</server>
<!-- ... -->
<filters>
<filter name="jfr" module="com.github.marschall.undertow.jfr" class-name="com.github.marschall.undertow.jfr.JfrHandler"/>
</filters>
</subsystem>
TODO
- Can we use a direct jigsaw module dependency in
module.xml
? - Should exception in
#handleRequest
be caught? - What about async servlet? Should we use
@TransitionFrom
and@TransitionTo
? - What other attributes should we log.