Class MetricsWebClientFilterFunction
java.lang.Object
org.springframework.boot.actuate.metrics.web.reactive.client.MetricsWebClientFilterFunction
- All Implemented Interfaces:
ExchangeFilterFunction
ExchangeFilterFunction
applied via a MetricsWebClientCustomizer
to
record metrics.- Since:
- 2.1.0
- Author:
- Brian Clozel, Tadaya Tsuyukubo
-
Constructor Summary
ConstructorDescriptionMetricsWebClientFilterFunction
(io.micrometer.core.instrument.MeterRegistry meterRegistry, WebClientExchangeTagsProvider tagProvider, String metricName, AutoTimer autoTimer) Create a newMetricsWebClientFilterFunction
. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ClientResponse>
filter
(ClientRequest request, ExchangeFunction next) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.reactive.function.client.ExchangeFilterFunction
andThen, apply
-
Constructor Details
-
MetricsWebClientFilterFunction
public MetricsWebClientFilterFunction(io.micrometer.core.instrument.MeterRegistry meterRegistry, WebClientExchangeTagsProvider tagProvider, String metricName, AutoTimer autoTimer) Create a newMetricsWebClientFilterFunction
.- Parameters:
meterRegistry
- the registry to which metrics are recordedtagProvider
- provider for metrics tagsmetricName
- name of the metric to recordautoTimer
- the auto-timer configuration ornull
to disable- Since:
- 2.2.0
-
-
Method Details
-
filter
public reactor.core.publisher.Mono<ClientResponse> filter(ClientRequest request, ExchangeFunction next) - Specified by:
filter
in interfaceExchangeFilterFunction
-