Class WebFluxTags
java.lang.Object
org.springframework.boot.actuate.metrics.web.reactive.server.WebFluxTags
Deprecated, for removal: This API element is subject to removal in a future version.
Factory methods for
Tags associated with a request-response exchange that
is handled by WebFlux.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.micrometer.core.instrument.TagDeprecated, for removal: This API element is subject to removal in a future version.static io.micrometer.core.instrument.Tagmethod(org.springframework.web.server.ServerWebExchange exchange) Deprecated, for removal: This API element is subject to removal in a future version.Creates amethodtag based on themethodof theServerWebExchange.getRequest()request of the givenexchange.static io.micrometer.core.instrument.TagDeprecated, for removal: This API element is subject to removal in a future version.Creates anoutcometag based on the response status of the givenexchangeand the exception thrown during request processing.static io.micrometer.core.instrument.Tagstatus(org.springframework.web.server.ServerWebExchange exchange) Deprecated, for removal: This API element is subject to removal in a future version.Creates astatustag based on the response status of the givenexchange.static io.micrometer.core.instrument.Taguri(org.springframework.web.server.ServerWebExchange exchange) Deprecated, for removal: This API element is subject to removal in a future version.Creates auritag based on the URI of the givenexchange.static io.micrometer.core.instrument.Taguri(org.springframework.web.server.ServerWebExchange exchange, boolean ignoreTrailingSlash) Deprecated, for removal: This API element is subject to removal in a future version.Creates auritag based on the URI of the givenexchange.
-
Method Details
-
method
public static io.micrometer.core.instrument.Tag method(org.springframework.web.server.ServerWebExchange exchange) Deprecated, for removal: This API element is subject to removal in a future version.Creates amethodtag based on themethodof 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) Deprecated, for removal: This API element is subject to removal in a future version.Creates astatustag 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) Deprecated, for removal: This API element is subject to removal in a future version.Creates auritag based on the URI of the givenexchange. Uses theHandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTEbest matching pattern if available. Falling back toREDIRECTIONfor 3xx responses,NOT_FOUNDfor 404 responses,rootfor requests with no path info, andUNKNOWNfor all other requests.- Parameters:
exchange- the exchange- Returns:
- the uri tag derived from the exchange
-
uri
public static io.micrometer.core.instrument.Tag uri(org.springframework.web.server.ServerWebExchange exchange, boolean ignoreTrailingSlash) Deprecated, for removal: This API element is subject to removal in a future version.Creates auritag based on the URI of the givenexchange. Uses theHandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTEbest matching pattern if available. Falling back toREDIRECTIONfor 3xx responses,NOT_FOUNDfor 404 responses,rootfor requests with no path info, andUNKNOWNfor all other requests.- Parameters:
exchange- the exchangeignoreTrailingSlash- whether to ignore the trailing slash- Returns:
- the uri tag derived from the exchange
-
exception
Deprecated, for removal: This API element is subject to removal in a future version.- 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, Throwable exception) Deprecated, for removal: This API element is subject to removal in a future version.Creates anoutcometag based on the response status of the givenexchangeand the exception thrown during request processing.- Parameters:
exchange- the exchangeexception- the termination signal sent by the publisher- Returns:
- the outcome tag derived from the response status
- Since:
- 2.5.0
-
ServerRequestObservationConvention