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)
Deprecated.
since 2.3.0 for removal in 2.5.0 in favor of
status(ClientResponse, Throwable) |
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 |
status(Throwable throwable)
Deprecated.
since 2.3.0 for removal in 2.5.0 in favor of
status(ClientResponse, Throwable) |
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 exception@Deprecated public static io.micrometer.core.instrument.Tag status(ClientResponse response)
status(ClientResponse, Throwable)
response
- the response@Deprecated public static io.micrometer.core.instrument.Tag status(Throwable throwable)
status(ClientResponse, Throwable)
status
Tag
derived from the exception thrown by the
client.throwable
- 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