类 WebFluxTags


  • public final class WebFluxTags
    extends Object
    Factory methods for Tags associated with a request-response exchange that is handled by WebFlux.
    从以下版本开始:
    2.0.0
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型方法说明
      static io.micrometer.core.instrument.Tagexception​(Throwable exception)
      Creates an exception tag based on the simple name of the class of the given exception.
      static io.micrometer.core.instrument.Tagmethod​(org.springframework.web.server.ServerWebExchange exchange)
      Creates a method tag based on the method of the ServerWebExchange.getRequest() request of the given exchange.
      static io.micrometer.core.instrument.Tagoutcome​(org.springframework.web.server.ServerWebExchange exchange)
      Creates an outcome tag based on the response status of the given exchange.
      static io.micrometer.core.instrument.Tagstatus​(org.springframework.web.server.ServerWebExchange exchange)
      Creates a status tag based on the response status of the given exchange.
      static io.micrometer.core.instrument.Taguri​(org.springframework.web.server.ServerWebExchange exchange)
      Creates a uri tag based on the URI of the given exchange.
    • 方法详细资料

      • method

        public static io.micrometer.core.instrument.Tag method​(org.springframework.web.server.ServerWebExchange exchange)
        Creates a method tag based on the method of the ServerWebExchange.getRequest() request of the given exchange.
        参数:
        exchange - the exchange
        返回:
        the method tag whose value is a capitalized method (e.g. GET).
      • status

        public static io.micrometer.core.instrument.Tag status​(org.springframework.web.server.ServerWebExchange exchange)
        Creates a status tag based on the response status of the given exchange.
        参数:
        exchange - the exchange
        返回:
        the status tag derived from the response status
      • uri

        public static io.micrometer.core.instrument.Tag uri​(org.springframework.web.server.ServerWebExchange exchange)
        Creates a uri tag based on the URI of the given exchange. Uses the HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE best matching pattern.
        参数:
        exchange - the exchange
        返回:
        the uri tag derived from the exchange
      • exception

        public static io.micrometer.core.instrument.Tag exception​(Throwable exception)
        Creates an exception tag based on the simple name of the class of the given exception.
        参数:
        exception - the exception, may be null
        返回:
        the exception tag derived from the exception
      • outcome

        public static io.micrometer.core.instrument.Tag outcome​(org.springframework.web.server.ServerWebExchange exchange)
        Creates an outcome tag based on the response status of the given exchange.
        参数:
        exchange - the exchange
        返回:
        the outcome tag derived from the response status
        从以下版本开始:
        2.1.0