Class ObservationWebClientCustomizer
java.lang.Object
org.springframework.boot.actuate.metrics.web.reactive.client.ObservationWebClientCustomizer
- All Implemented Interfaces:
WebClientCustomizer
WebClientCustomizer
that configures the WebClient
to record request
observations.- Since:
- 3.0.0
- Author:
- Brian Clozel
-
Constructor Summary
ConstructorDescriptionObservationWebClientCustomizer
(io.micrometer.observation.ObservationRegistry observationRegistry, ClientRequestObservationConvention observationConvention) Create a newObservationWebClientCustomizer
that will configure theObservation
setup on the client. -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(WebClient.Builder webClientBuilder) Callback to customize aWebClient.Builder
instance.
-
Constructor Details
-
ObservationWebClientCustomizer
public ObservationWebClientCustomizer(io.micrometer.observation.ObservationRegistry observationRegistry, ClientRequestObservationConvention observationConvention) Create a newObservationWebClientCustomizer
that will configure theObservation
setup on the client.- Parameters:
observationRegistry
- the registry to publish observations toobservationConvention
- the convention to use to populate observations
-
-
Method Details
-
customize
Description copied from interface:WebClientCustomizer
Callback to customize aWebClient.Builder
instance.- Specified by:
customize
in interfaceWebClientCustomizer
- Parameters:
webClientBuilder
- the client builder to customize
-