public class MetricsWebClientCustomizer
extends java.lang.Object
implements org.springframework.boot.web.reactive.function.client.WebClientCustomizer
WebClientCustomizer that configures the WebClient to record request
metrics.| Constructor and Description |
|---|
MetricsWebClientCustomizer(io.micrometer.core.instrument.MeterRegistry meterRegistry,
WebClientExchangeTagsProvider tagProvider,
java.lang.String metricName,
AutoTimer autoTimer)
Create a new
MetricsWebClientFilterFunction that will record metrics using
the given meterRegistry with tags provided by the given
tagProvider. |
| Modifier and Type | Method and Description |
|---|---|
void |
customize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder) |
public MetricsWebClientCustomizer(io.micrometer.core.instrument.MeterRegistry meterRegistry,
WebClientExchangeTagsProvider tagProvider,
java.lang.String metricName,
AutoTimer autoTimer)
MetricsWebClientFilterFunction that will record metrics using
the given meterRegistry with tags provided by the given
tagProvider.meterRegistry - the meter registrytagProvider - the tag providermetricName - the name of the recorded metricautoTimer - the auto-timers to apply or null to disable auto-timing