Jetty-level Handler.Wrapper that provides comprehensive Glowroot APM instrumentation in a single handler, designed for use with dev.rafex.ether.http.jetty12.JettyMiddleware-based architectures.
More...
Classes | |
| class | Builder |
Public Member Functions | |
| boolean | handle (final Request request, final Response response, final Callback callback) throws Exception |
Static Public Member Functions | |
| static Builder | builder () |
Returns a new Builder. | |
Jetty-level Handler.Wrapper that provides comprehensive Glowroot APM instrumentation in a single handler, designed for use with dev.rafex.ether.http.jetty12.JettyMiddleware-based architectures.
Combines all the capabilities of the ether-level middleware suite into one Jetty handler, making it compatible with projects that use Jetty's Handler.Wrapper chain rather than the ether HttpExchange middleware model.
"Web" + "METHOD /normalized/path" http.status and http.status_class Glowroot.setTransactionUser() via configurable extractor X-Request-Id), with optional UUID generation error and error.message on uncaught exceptions
final var glowroot = GlowrootJettyHandler.builder().healthPath("/health").requestIdHeader("X-Request-Id")
.defaultSlowThreshold(2_000).userExtractor(ctx -> ctx instanceof MyAuthContext a ? a.subject() : null)
.build();
middlewareRegistry.add(glowroot::wrap); // Kiwi
etherMiddlewares.add(glowroot::wrap); // ether JettyMiddleware
Definition at line 87 of file GlowrootJettyHandler.java.
|
static |
Returns a new Builder.
Definition at line 107 of file GlowrootJettyHandler.java.
| boolean dev.rafex.ether.glowroot.jetty12.GlowrootJettyHandler.handle | ( | final Request | request, |
| final Response | response, | ||
| final Callback | callback ) throws Exception |
Definition at line 112 of file GlowrootJettyHandler.java.
References dev.rafex.ether.http.jetty12.JettyAuthHandler.REQ_ATTR_AUTH.