public final class WebFluxTags
extends java.lang.Object
Tags associated with a request-response exchange that
is handled by WebFlux.| Modifier and Type | Method and Description |
|---|---|
static io.micrometer.core.instrument.Tag |
exception(java.lang.Throwable exception)
Creates an
exception tag based on the simple
name of the class of the given exception. |
static io.micrometer.core.instrument.Tag |
method(org.springframework.web.server.ServerWebExchange exchange)
Creates a
method tag based on the
method of the ServerWebExchange.getRequest() request of the given
exchange. |
static io.micrometer.core.instrument.Tag |
outcome(org.springframework.web.server.ServerWebExchange exchange,
java.lang.Throwable exception)
Creates an
outcome tag based on the response status of the given
exchange and the exception thrown during request processing. |
static io.micrometer.core.instrument.Tag |
status(org.springframework.web.server.ServerWebExchange exchange)
Creates a
status tag based on the response status of the given
exchange. |
static io.micrometer.core.instrument.Tag |
uri(org.springframework.web.server.ServerWebExchange exchange)
Creates a
uri tag based on the URI of the given exchange. |
static io.micrometer.core.instrument.Tag |
uri(org.springframework.web.server.ServerWebExchange exchange,
boolean ignoreTrailingSlash)
Creates a
uri tag based on the URI of the given exchange. |
public static io.micrometer.core.instrument.Tag method(org.springframework.web.server.ServerWebExchange exchange)
method tag based on the
method of the ServerWebExchange.getRequest() request of the given
exchange.exchange - the exchangepublic static io.micrometer.core.instrument.Tag status(org.springframework.web.server.ServerWebExchange exchange)
status tag based on the response status of the given
exchange.exchange - the exchangepublic static io.micrometer.core.instrument.Tag uri(org.springframework.web.server.ServerWebExchange exchange)
uri tag based on the URI of the given exchange. Uses the
HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE best matching pattern if
available. Falling back to REDIRECTION for 3xx responses, NOT_FOUND
for 404 responses, root for requests with no path info, and UNKNOWN
for all other requests.exchange - the exchangepublic static io.micrometer.core.instrument.Tag uri(org.springframework.web.server.ServerWebExchange exchange,
boolean ignoreTrailingSlash)
uri tag based on the URI of the given exchange. Uses the
HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE best matching pattern if
available. Falling back to REDIRECTION for 3xx responses, NOT_FOUND
for 404 responses, root for requests with no path info, and UNKNOWN
for all other requests.exchange - the exchangeignoreTrailingSlash - whether to ignore the trailing slashpublic static io.micrometer.core.instrument.Tag exception(java.lang.Throwable exception)
exception tag based on the simple
name of the class of the given exception.exception - the exception, may be nullpublic static io.micrometer.core.instrument.Tag outcome(org.springframework.web.server.ServerWebExchange exchange,
java.lang.Throwable exception)
outcome tag based on the response status of the given
exchange and the exception thrown during request processing.exchange - the exchangeexception - the termination signal sent by the publisher