Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
dev.rafex.ether.glowroot.jetty12.GlowrootStatusCapturingMiddleware Class Reference

Middleware that captures the HTTP response status code into Glowroot. More...

Inheritance diagram for dev.rafex.ether.glowroot.jetty12.GlowrootStatusCapturingMiddleware:
Collaboration diagram for dev.rafex.ether.glowroot.jetty12.GlowrootStatusCapturingMiddleware:

Public Member Functions

HttpHandler wrap (final HttpHandler next)

Detailed Description

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.

Member Function Documentation

◆ wrap()

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().

Here is the call graph for this function:

The documentation for this class was generated from the following file: