Class ObservationRestTemplateCustomizer

java.lang.Object
org.springframework.boot.actuate.metrics.web.client.ObservationRestTemplateCustomizer
All Implemented Interfaces:
RestTemplateCustomizer

public class ObservationRestTemplateCustomizer extends Object implements RestTemplateCustomizer
RestTemplateCustomizer that configures the RestTemplate to record request observations.
Since:
3.0.0
Author:
Brian Clozel
  • Constructor Details

    • ObservationRestTemplateCustomizer

      public ObservationRestTemplateCustomizer(io.micrometer.observation.ObservationRegistry observationRegistry, ClientRequestObservationConvention observationConvention)
      Create a new ObservationRestTemplateCustomizer.
      Parameters:
      observationConvention - the observation convention
      observationRegistry - the observation registry
  • Method Details