Middleware that instruments HTTP requests with Glowroot APM. More...
Public Member Functions | |
| HttpHandler | wrap (final HttpHandler next) |
Middleware that instruments HTTP requests with Glowroot APM.
Sets the Glowroot transaction type to "Web" and names each transaction as "METHOD /normalized/path", replacing dynamic path segments (UUIDs, ObjectIds, numeric IDs) with canonical placeholders so that Glowroot can aggregate similar endpoints.
Usage — register once when building the Jetty server:
middlewareRegistry.add(new GlowrootHttpMiddleware());
Definition at line 52 of file GlowrootHttpMiddleware.java.
| HttpHandler dev.rafex.ether.glowroot.jetty12.GlowrootHttpMiddleware.wrap | ( | final HttpHandler | next | ) |
Implements dev.rafex.ether.http.core.Middleware.
Definition at line 55 of file GlowrootHttpMiddleware.java.
References dev.rafex.ether.http.core.HttpHandler.handle().