org.springframework.boot.actuate.metrics.web.reactive.server

Class WebFluxTags

  • java.lang.Object
    • org.springframework.boot.actuate.metrics.web.reactive.server.WebFluxTags


  • public final class WebFluxTags
    extends Object
    Factory methods for Tags associated with a request-response exchange that is handled by WebFlux.
    Since:
    2.0.0
    Author:
    Jon Schneider, Andy Wilkinson
    • Method Detail

      • method

        public static io.micrometer.core.instrument.Tag method(ServerWebExchange exchange)
        Creates a method tag based on the method of the ServerWebExchange.getRequest() request of the given exchange.
        Parameters:
        exchange - the exchange
        Returns:
        the method tag whose value is a capitalized method (e.g. GET).
      • status

        public static io.micrometer.core.instrument.Tag status(ServerWebExchange exchange)
        Creates a method tag based on the response status of the given exchange.
        Parameters:
        exchange - the exchange
        Returns:
        the "status" tag derived from the response status
      • 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.
        Parameters:
        exception - the exception, may be null
        Returns:
        the exception tag derived from the exception