Class ObservationRestClientCustomizer

java.lang.Object
org.springframework.boot.actuate.metrics.web.client.ObservationRestClientCustomizer
All Implemented Interfaces:
org.springframework.boot.web.client.RestClientCustomizer

public class ObservationRestClientCustomizer extends Object implements org.springframework.boot.web.client.RestClientCustomizer
RestClientCustomizer that configures the RestClient builder to record request observations.
Since:
3.2.0
  • Constructor Details

    • ObservationRestClientCustomizer

      public ObservationRestClientCustomizer(io.micrometer.observation.ObservationRegistry observationRegistry, org.springframework.http.client.observation.ClientRequestObservationConvention observationConvention)
      Parameters:
      observationRegistry - the observation registry
      observationConvention - the observation convention
  • Method Details

    • customize

      public void customize(org.springframework.web.client.RestClient.Builder restClientBuilder)
      Specified by:
      customize in interface org.springframework.boot.web.client.RestClientCustomizer