Class WebFluxTags
- java.lang.Object
- org.springframework.boot.actuate.metrics.web.reactive.server.WebFluxTags
public final class WebFluxTags extends Object
Factory methods forTags
associated with a request-response exchange that is handled by WebFlux.- Since:
- 2.0.0
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.micrometer.core.instrument.Tag
exception(Throwable exception)
static io.micrometer.core.instrument.Tag
method(org.springframework.web.server.ServerWebExchange exchange)
Creates amethod
tag based on themethod
of theServerWebExchange.getRequest()
request of the givenexchange
.static io.micrometer.core.instrument.Tag
outcome(org.springframework.web.server.ServerWebExchange exchange)
Creates anoutcome
tag based on the response status of the givenexchange
.static io.micrometer.core.instrument.Tag
status(org.springframework.web.server.ServerWebExchange exchange)
Creates astatus
tag based on the response status of the givenexchange
.static io.micrometer.core.instrument.Tag
uri(org.springframework.web.server.ServerWebExchange exchange)
Creates auri
tag based on the URI of the givenexchange
.
Method Detail
method
public static io.micrometer.core.instrument.Tag method(org.springframework.web.server.ServerWebExchange exchange)
Creates amethod
tag based on themethod
of theServerWebExchange.getRequest()
request of the givenexchange
.- Parameters:
exchange
- the exchange- Returns:
- the method tag whose value is a capitalized method (e.g. GET).
status
public static io.micrometer.core.instrument.Tag status(org.springframework.web.server.ServerWebExchange exchange)
Creates astatus
tag based on the response status of the givenexchange
.- Parameters:
exchange
- the exchange- Returns:
- the status tag derived from the response status
uri
public static io.micrometer.core.instrument.Tag uri(org.springframework.web.server.ServerWebExchange exchange)
Creates auri
tag based on the URI of the givenexchange
. Uses theHandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE
best matching pattern.- Parameters:
exchange
- the exchange- Returns:
- the uri tag derived from the exchange
exception
public static io.micrometer.core.instrument.Tag exception(Throwable exception)
- Parameters:
exception
- the exception, may benull
- Returns:
- the exception tag derived from the exception
outcome
public static io.micrometer.core.instrument.Tag outcome(org.springframework.web.server.ServerWebExchange exchange)
Creates anoutcome
tag based on the response status of the givenexchange
.- Parameters:
exchange
- the exchange- Returns:
- the outcome tag derived from the response status
- Since:
- 2.1.0