类 WebClientExchangeTags


  • public final class WebClientExchangeTags
    extends Object
    Factory methods for creating Tags related to a request-response exchange performed by a WebClient.
    从以下版本开始:
    2.1.0
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型方法说明
      static io.micrometer.core.instrument.TagclientName​(org.springframework.web.reactive.function.client.ClientRequest request)
      Create a clientNameTag derived from the host of the URL of the given request.
      static io.micrometer.core.instrument.Tagmethod​(org.springframework.web.reactive.function.client.ClientRequest request)
      Creates a methodTag for the method of the given request.
      static io.micrometer.core.instrument.Tagstatus​(Throwable throwable)
      Creates a statusTag derived from the exception thrown by the client.
      static io.micrometer.core.instrument.Tagstatus​(org.springframework.web.reactive.function.client.ClientResponse response)
      Creates a statusTag derived from the ClientResponse.statusCode() of the given response.
      static io.micrometer.core.instrument.Taguri​(org.springframework.web.reactive.function.client.ClientRequest request)
      Creates a uriTag for the URI path of the given request.
    • 方法详细资料

      • method

        public static io.micrometer.core.instrument.Tag method​(org.springframework.web.reactive.function.client.ClientRequest request)
        Creates a methodTag for the method of the given request.
        参数:
        request - the request
        返回:
        the method tag
      • uri

        public static io.micrometer.core.instrument.Tag uri​(org.springframework.web.reactive.function.client.ClientRequest request)
        Creates a uriTag for the URI path of the given request.
        参数:
        request - the request
        返回:
        the uri tag
      • status

        public static io.micrometer.core.instrument.Tag status​(org.springframework.web.reactive.function.client.ClientResponse response)
        Creates a statusTag derived from the ClientResponse.statusCode() of the given response.
        参数:
        response - the response
        返回:
        the status tag
      • status

        public static io.micrometer.core.instrument.Tag status​(Throwable throwable)
        Creates a statusTag 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)
        Create a clientNameTag derived from the host of the URL of the given request.
        参数:
        request - the request
        返回:
        the clientName tag