public final class WebMvcTags extends Object
Tags associated with a request-response exchange that
is handled by Spring MVC.| Modifier and Type | Method and Description |
|---|---|
static io.micrometer.core.instrument.Tag |
exception(Throwable exception)
|
static io.micrometer.core.instrument.Tag |
method(HttpServletRequest request)
|
static io.micrometer.core.instrument.Tag |
status(HttpServletResponse response)
Creates a
method tag based on the status of the given response. |
static io.micrometer.core.instrument.Tag |
uri(HttpServletRequest request,
HttpServletResponse response)
Creates a
uri tag based on the URI of the given request. |
public static io.micrometer.core.instrument.Tag method(HttpServletRequest request)
request - the requestpublic static io.micrometer.core.instrument.Tag status(HttpServletResponse response)
method tag based on the status of the given response.response - the HTTP responsepublic static io.micrometer.core.instrument.Tag uri(HttpServletRequest request, HttpServletResponse response)
uri tag based on the URI of the given request. Uses the
HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE best matching pattern if
available, falling back to the request's path info if necessary.request - the requestresponse - the responsepublic static io.micrometer.core.instrument.Tag exception(Throwable exception)
exception - the exception, may be nullCopyright © 2018 Pivotal Software, Inc.. All rights reserved.