Class DefaultWebFluxTagsProvider

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

@Deprecated(since="3.0.0", forRemoval=true) public class DefaultWebFluxTagsProvider extends Object implements WebFluxTagsProvider
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.0.0 for removal in 3.2.0 in favor of ServerRequestObservationConvention
Default implementation of WebFluxTagsProvider.
Since:
2.0.0
Author:
Jon Schneider, Andy Wilkinson
  • Constructor Details

    • DefaultWebFluxTagsProvider

      public DefaultWebFluxTagsProvider()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • DefaultWebFluxTagsProvider

      public DefaultWebFluxTagsProvider(List<WebFluxTagsContributor> contributors)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • DefaultWebFluxTagsProvider

      public DefaultWebFluxTagsProvider(boolean ignoreTrailingSlash, List<WebFluxTagsContributor> contributors)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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