Class SpringWebfluxClientTelemetry

java.lang.Object
io.opentelemetry.instrumentation.spring.webflux.v5_3.SpringWebfluxClientTelemetry

public final class SpringWebfluxClientTelemetry extends Object
Entrypoint for instrumenting Spring Webflux HTTP clients.
  • Method Details

    • create

      public static SpringWebfluxClientTelemetry create(io.opentelemetry.api.OpenTelemetry openTelemetry)
      Returns a new SpringWebfluxClientTelemetry configured with the given OpenTelemetry.
    • builder

      public static SpringWebfluxClientTelemetryBuilder builder(io.opentelemetry.api.OpenTelemetry openTelemetry)
      Returns a new SpringWebfluxClientTelemetryBuilder configured with the given OpenTelemetry.
    • addFilter

      public void addFilter(List<org.springframework.web.reactive.function.client.ExchangeFilterFunction> exchangeFilterFunctions)
      Adds the OpenTelemetry telemetry producing ExchangeFilterFunction to the provided list of filter functions.
      Parameters:
      exchangeFilterFunctions - existing filter functions
    • addFilterAndRegisterReactorHook

      public void addFilterAndRegisterReactorHook(List<org.springframework.web.reactive.function.client.ExchangeFilterFunction> exchangeFilterFunctions)
      Adds the OpenTelemetry telemetry producing ExchangeFilterFunction to the provided list of filter functions. Also registers the Reactor context propagation hook ContextPropagationOperator for propagating OpenTelemetry context into reactive pipelines.
      Parameters:
      exchangeFilterFunctions - existing filter functions