public final class WebClientExchangeTags
extends java.lang.Object
Tags related to a request-response exchange
performed by a WebClient.| Modifier and Type | Method and Description |
|---|---|
static io.micrometer.core.instrument.Tag |
clientName(org.springframework.web.reactive.function.client.ClientRequest request)
Create a
client.name Tag derived from the
host of the URL of the
given request. |
static io.micrometer.core.instrument.Tag |
method(org.springframework.web.reactive.function.client.ClientRequest request)
Creates a
method Tag for the method of the given request. |
static io.micrometer.core.instrument.Tag |
outcome(org.springframework.web.reactive.function.client.ClientResponse response)
Creates an
outcome Tag derived from the
status of the given response. |
static io.micrometer.core.instrument.Tag |
status(org.springframework.web.reactive.function.client.ClientResponse response,
java.lang.Throwable throwable)
Creates a
status Tag derived from the
ClientResponse.statusCode() of the given response if available, the
thrown exception otherwise, or considers the request as Cancelled as a last resort. |
static io.micrometer.core.instrument.Tag |
uri(org.springframework.web.reactive.function.client.ClientRequest request)
Creates a
uri Tag for the URI path of the given request. |
public static io.micrometer.core.instrument.Tag method(org.springframework.web.reactive.function.client.ClientRequest request)
method Tag for the method of the given request.request - the requestpublic static io.micrometer.core.instrument.Tag uri(org.springframework.web.reactive.function.client.ClientRequest request)
uri Tag for the URI path of the given request.request - the requestpublic static io.micrometer.core.instrument.Tag status(org.springframework.web.reactive.function.client.ClientResponse response,
java.lang.Throwable throwable)
status Tag derived from the
ClientResponse.statusCode() of the given response if available, the
thrown exception otherwise, or considers the request as Cancelled as a last resort.response - the responsethrowable - the exceptionpublic static io.micrometer.core.instrument.Tag clientName(org.springframework.web.reactive.function.client.ClientRequest request)
client.name Tag derived from the
host of the URL of the
given request.request - the requestpublic static io.micrometer.core.instrument.Tag outcome(org.springframework.web.reactive.function.client.ClientResponse response)
outcome Tag derived from the
status of the given response.response - the response