Middleware that captures the HTTP response status code into Glowroot. More...
Public Member Functions | |
| HttpHandler | wrap (final HttpHandler next) |
Middleware that captures the HTTP response status code into Glowroot.
Wraps the dev.rafex.ether.http.core.HttpExchange with a StatusCapturingHttpExchange decorator that intercepts every response-writing call (json, text, noContent, methodNotAllowed, options) and records:
http.status — numeric status code, e.g. "200" http.status_class — status family, e.g. "2xx" Usage — register after GlowrootHttpMiddleware so the transaction name is already set when the status is recorded:
middlewareRegistry.add(new GlowrootHttpMiddleware());
middlewareRegistry.add(new GlowrootStatusCapturingMiddleware());
Definition at line 56 of file GlowrootStatusCapturingMiddleware.java.
| HttpHandler dev.rafex.ether.glowroot.jetty12.GlowrootStatusCapturingMiddleware.wrap | ( | final HttpHandler | next | ) |
Implements dev.rafex.ether.http.core.Middleware.
Definition at line 59 of file GlowrootStatusCapturingMiddleware.java.
References dev.rafex.ether.http.core.HttpHandler.handle().