类 MetricsWebClientCustomizer

  • 所有已实现的接口:
    org.springframework.boot.web.reactive.function.client.WebClientCustomizer

    public class MetricsWebClientCustomizer
    extends Object
    implements org.springframework.boot.web.reactive.function.client.WebClientCustomizer
    WebClientCustomizer that configures the WebClient to record request metrics.
    从以下版本开始:
    2.1.0
    • 构造器详细资料

      • MetricsWebClientCustomizer

        public MetricsWebClientCustomizer​(io.micrometer.core.instrument.MeterRegistry meterRegistry,
                                          WebClientExchangeTagsProvider tagProvider,
                                          String metricName)
        Create a new MetricsWebClientFilterFunction that will record metrics using the given meterRegistry with tags provided by the given tagProvider.
        参数:
        meterRegistry - the meter registry
        tagProvider - the tag provider
        metricName - the name of the recorded metric
    • 方法详细资料

      • customize

        public void customize​(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
        指定者:
        customize 在接口中 org.springframework.boot.web.reactive.function.client.WebClientCustomizer