java.lang.Object
io.opentelemetry.instrumentation.spring.webflux.v5_3.internal.WebClientTracingFilter
All Implemented Interfaces:
org.springframework.web.reactive.function.client.ExchangeFilterFunction

public class WebClientTracingFilter extends Object implements org.springframework.web.reactive.function.client.ExchangeFilterFunction
Based on Spring Sleuth's Reactor instrumentation. https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/client/TraceWebClientBeanPostProcessor.java

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Constructor Summary

    Constructors
    Constructor
    Description
    WebClientTracingFilter(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse> instrumenter, io.opentelemetry.context.propagation.ContextPropagators propagators)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse>
    filter(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ExchangeFunction next)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.reactive.function.client.ExchangeFilterFunction

    andThen, apply
  • Constructor Details

    • WebClientTracingFilter

      public WebClientTracingFilter(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse> instrumenter, io.opentelemetry.context.propagation.ContextPropagators propagators)
  • Method Details

    • filter

      public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> filter(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ExchangeFunction next)
      Specified by:
      filter in interface org.springframework.web.reactive.function.client.ExchangeFilterFunction