Class MetricsWebClientCustomizer

java.lang.Object
org.springframework.boot.actuate.metrics.web.reactive.client.MetricsWebClientCustomizer
All Implemented Interfaces:
WebClientCustomizer

public class MetricsWebClientCustomizer extends Object implements WebClientCustomizer
WebClientCustomizer that configures the WebClient to record request metrics.
Since:
2.1.0
Author:
Brian Clozel
  • Constructor Details

    • MetricsWebClientCustomizer

      public MetricsWebClientCustomizer(io.micrometer.core.instrument.MeterRegistry meterRegistry, WebClientExchangeTagsProvider tagProvider, String metricName, AutoTimer autoTimer)
      Create a new MetricsWebClientFilterFunction that will record metrics using the given meterRegistry with tags provided by the given tagProvider.
      Parameters:
      meterRegistry - the meter registry
      tagProvider - the tag provider
      metricName - the name of the recorded metric
      autoTimer - the auto-timers to apply or null to disable auto-timing
      Since:
      2.2.0
  • Method Details