public class MetricsWebClientCustomizer extends Object implements WebClientCustomizer
WebClientCustomizer
that configures the WebClient
to record request
metrics.Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
void |
customize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
Callback to customize a
WebClient.Builder instance. |
public MetricsWebClientCustomizer(io.micrometer.core.instrument.MeterRegistry meterRegistry, WebClientExchangeTagsProvider tagProvider, String metricName)
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 metricpublic void customize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
WebClientCustomizer
WebClient.Builder
instance.customize
in interface WebClientCustomizer
webClientBuilder
- the client builder to customizeCopyright © 2019 Pivotal Software, Inc.. All rights reserved.