Modifier and Type | Method and Description |
---|---|
static io.micrometer.core.instrument.Tag |
clientName(ClientRequest request)
|
static io.micrometer.core.instrument.Tag |
method(ClientRequest request)
|
static io.micrometer.core.instrument.Tag |
outcome(ClientResponse response)
|
static io.micrometer.core.instrument.Tag |
status(ClientResponse response,
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(ClientRequest request)
Creates a
uri Tag for the URI path of the given request . |
public static io.micrometer.core.instrument.Tag method(ClientRequest request)
request
- the requestpublic static io.micrometer.core.instrument.Tag uri(ClientRequest request)
uri
Tag
for the URI path of the given request
.request
- the requestpublic static io.micrometer.core.instrument.Tag status(ClientResponse response, 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(ClientRequest request)
request
- the requestpublic static io.micrometer.core.instrument.Tag outcome(ClientResponse response)
response
- the response