Class ObservationRestClientCustomizer
java.lang.Object
org.springframework.boot.actuate.metrics.web.client.ObservationRestClientCustomizer
- All Implemented Interfaces:
RestClientCustomizer
RestClientCustomizer
that configures the RestClient builder
to
record request observations.- Since:
- 3.2.0
- Author:
- Moritz Halbritter
-
Constructor Summary
ConstructorDescriptionObservationRestClientCustomizer
(io.micrometer.observation.ObservationRegistry observationRegistry, ClientRequestObservationConvention observationConvention) Create a newObservationRestClientCustomizer
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(RestClient.Builder restClientBuilder) Callback to customize aRestClient.Builder
instance.
-
Constructor Details
-
ObservationRestClientCustomizer
public ObservationRestClientCustomizer(io.micrometer.observation.ObservationRegistry observationRegistry, ClientRequestObservationConvention observationConvention) Create a newObservationRestClientCustomizer
.- Parameters:
observationRegistry
- the observation registryobservationConvention
- the observation convention
-
-
Method Details
-
customize
Description copied from interface:RestClientCustomizer
Callback to customize aRestClient.Builder
instance.- Specified by:
customize
in interfaceRestClientCustomizer
- Parameters:
restClientBuilder
- the client builder to customize
-