Class DefaultWebFluxTagsProvider

java.lang.Object
org.springframework.boot.actuate.metrics.web.reactive.server.DefaultWebFluxTagsProvider
All Implemented Interfaces:
WebFluxTagsProvider

public class DefaultWebFluxTagsProvider extends Object implements WebFluxTagsProvider
Default implementation of WebFluxTagsProvider.
Since:
2.0.0
Author:
Jon Schneider, Andy Wilkinson
  • Constructor Details

    • DefaultWebFluxTagsProvider

      public DefaultWebFluxTagsProvider()
    • DefaultWebFluxTagsProvider

      public DefaultWebFluxTagsProvider(List<WebFluxTagsContributor> contributors)
      Creates a new DefaultWebFluxTagsProvider that will provide tags from the given contributors in addition to its own.
      Parameters:
      contributors - the contributors that will provide additional tags
      Since:
      2.3.0
    • DefaultWebFluxTagsProvider

      public DefaultWebFluxTagsProvider(boolean ignoreTrailingSlash)
    • DefaultWebFluxTagsProvider

      public DefaultWebFluxTagsProvider(boolean ignoreTrailingSlash, List<WebFluxTagsContributor> contributors)
      Creates a new DefaultWebFluxTagsProvider that will provide tags from the given contributors in addition to its own.
      Parameters:
      ignoreTrailingSlash - whether trailing slashes should be ignored when determining the uri tag.
      contributors - the contributors that will provide additional tags
      Since:
      2.3.0
  • Method Details

    • httpRequestTags

      public Iterable<io.micrometer.core.instrument.Tag> httpRequestTags(ServerWebExchange exchange, Throwable exception)
      Description copied from interface: WebFluxTagsProvider
      Provides tags to be associated with metrics for the given exchange.
      Specified by:
      httpRequestTags in interface WebFluxTagsProvider
      Parameters:
      exchange - the exchange
      exception - the current exception (may be null)
      Returns:
      tags to associate with metrics for the request and response exchange