Undertow JFR

An Undertow HttpHandler that generates JFR events.

License

License

MIT
Categories

Categories

Undertow Net Networking
GroupId

GroupId

com.github.marschall
ArtifactId

ArtifactId

undertow-jfr
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Undertow JFR
An Undertow HttpHandler that generates JFR events.
Project URL

Project URL

https://github.com/marschall/undertow-jfr
Source Code Management

Source Code Management

https://github.com/marschall/undertow-jfr

Download undertow-jfr

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.marschall/undertow-jfr/ -->
<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>undertow-jfr</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.marschall/undertow-jfr/
implementation 'com.github.marschall:undertow-jfr:0.1.0'
// https://jarcasting.com/artifacts/com.github.marschall/undertow-jfr/
implementation ("com.github.marschall:undertow-jfr:0.1.0")
'com.github.marschall:undertow-jfr:jar:0.1.0'
<dependency org="com.github.marschall" name="undertow-jfr" rev="0.1.0">
  <artifact name="undertow-jfr" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.marschall', module='undertow-jfr', version='0.1.0')
)
libraryDependencies += "com.github.marschall" % "undertow-jfr" % "0.1.0"
[com.github.marschall/undertow-jfr "0.1.0"]

Dependencies

provided (1)

Group / Artifact Type Version
io.undertow : undertow-core jar 2.0.16.Final

test (4)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.3.2
org.junit.jupiter : junit-jupiter-engine jar 5.3.2
org.junit.platform : junit-platform-launcher jar 1.3.2
org.hamcrest : hamcrest-junit jar 2.0.0.0

Project Modules

There are no modules declared in this project.

Undertow JFR Build Status

An Undertow HttpHandler that generates Flight Recorder events.

This project requires Java 11.

Flight Recording of some HTTP requests

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.

Versions

Version
0.1.0