@CompileStatic static class UrlMappingsHandlerMapping.ObservationRouteHandler extends java.lang.Object implements HandlerInterceptor
Sets the HTTP server observation's route from the matched controller/action, so the
http.server.requests uri tag is a low-cardinality route (e.g. /book/show)
instead of UNKNOWN. Runs at preHandle: at URL-mapping match the observation
context is not yet on the request. A request routed to an error handler keeps the route that failed, so
that the failures an error handler answers are not all reported as its own route. That includes a handler
that forwards: a forward takes the status code off the request, and leaves the exception. An action a page
includes is part of that page, so it leaves the route of the page.
| Constructor and description |
|---|
UrlMappingsHandlerMapping.ObservationRouteHandler() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
preHandle(HttpServletRequest request, HttpServletResponse response, java.lang.Object handler) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |