类 WebClientExchangeTags
- java.lang.Object
- org.springframework.boot.actuate.metrics.web.reactive.client.WebClientExchangeTags
public final class WebClientExchangeTags extends Object
Factory methods for creatingTags
related to a request-response exchange performed by aWebClient
.- 从以下版本开始:
- 2.1.0
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 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 amethod
Tag
for themethod
of the givenrequest
.static io.micrometer.core.instrument.Tag
status(Throwable throwable)
Creates astatus
Tag
derived from the exception thrown by the client.static io.micrometer.core.instrument.Tag
status(org.springframework.web.reactive.function.client.ClientResponse response)
Creates astatus
Tag
derived from theClientResponse.statusCode()
of the givenresponse
.static io.micrometer.core.instrument.Tag
uri(org.springframework.web.reactive.function.client.ClientRequest request)
Creates auri
Tag
for the URI path of the givenrequest
.
方法详细资料
method
public static io.micrometer.core.instrument.Tag method(org.springframework.web.reactive.function.client.ClientRequest request)
Creates amethod
Tag
for themethod
of the givenrequest
.- 参数:
request
- the request- 返回:
- the method tag
uri
public static io.micrometer.core.instrument.Tag uri(org.springframework.web.reactive.function.client.ClientRequest request)
Creates auri
Tag
for the URI path of the givenrequest
.- 参数:
request
- the request- 返回:
- the uri tag
status
public static io.micrometer.core.instrument.Tag status(org.springframework.web.reactive.function.client.ClientResponse response)
Creates astatus
Tag
derived from theClientResponse.statusCode()
of the givenresponse
.- 参数:
response
- the response- 返回:
- the status tag
status
public static io.micrometer.core.instrument.Tag status(Throwable throwable)
Creates astatus
Tag
derived from the exception thrown by the client.- 参数:
throwable
- the exception- 返回:
- the status tag
clientName
public static io.micrometer.core.instrument.Tag clientName(org.springframework.web.reactive.function.client.ClientRequest request)
- 参数:
request
- the request- 返回:
- the clientName tag