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 |
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 requestCopyright © 2020 Pivotal Software, Inc.. All rights reserved.