Class ObservationWebClientCustomizer

java.lang.Object
org.springframework.boot.actuate.metrics.web.reactive.client.ObservationWebClientCustomizer
All Implemented Interfaces:
org.springframework.boot.web.reactive.function.client.WebClientCustomizer

public class ObservationWebClientCustomizer extends Object implements org.springframework.boot.web.reactive.function.client.WebClientCustomizer
WebClientCustomizer that configures the WebClient to record request observations.
Since:
3.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    ObservationWebClientCustomizer(io.micrometer.observation.ObservationRegistry observationRegistry, org.springframework.web.reactive.function.client.ClientRequestObservationConvention observationConvention)
    Create a new ObservationWebClientCustomizer that will configure the Observation setup on the client.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObservationWebClientCustomizer

      public ObservationWebClientCustomizer(io.micrometer.observation.ObservationRegistry observationRegistry, org.springframework.web.reactive.function.client.ClientRequestObservationConvention observationConvention)
      Create a new ObservationWebClientCustomizer that will configure the Observation setup on the client.
      Parameters:
      observationRegistry - the registry to publish observations to
      observationConvention - the convention to use to populate observations
  • Method Details

    • customize

      public void customize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
      Specified by:
      customize in interface org.springframework.boot.web.reactive.function.client.WebClientCustomizer