public final class WebClientExchangeTags extends 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)
|
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)
Creates a
status Tag derived from the
ClientResponse.statusCode() of the given response. |
static io.micrometer.core.instrument.Tag |
status(Throwable throwable)
Creates a
status Tag derived from the exception thrown by the
client. |
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)
status Tag derived from the
ClientResponse.statusCode() of the given response.response - the responsepublic static io.micrometer.core.instrument.Tag status(Throwable throwable)
status Tag derived from the exception thrown by the
client.throwable - the exceptionpublic static io.micrometer.core.instrument.Tag clientName(org.springframework.web.reactive.function.client.ClientRequest 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 responseCopyright © 2019 Pivotal Software, Inc.. All rights reserved.