Class SpringWebfluxClientTelemetry
java.lang.Object
io.opentelemetry.instrumentation.spring.webflux.v5_3.SpringWebfluxClientTelemetry
Entrypoint for instrumenting Spring Webflux HTTP clients.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilter(List<org.springframework.web.reactive.function.client.ExchangeFilterFunction> exchangeFilterFunctions) Adds an instrumentedExchangeFilterFunctionto the provided list.voidaddFilterAndRegisterReactorHook(List<org.springframework.web.reactive.function.client.ExchangeFilterFunction> exchangeFilterFunctions) Adds an instrumentedExchangeFilterFunctionto the provided list.builder(io.opentelemetry.api.OpenTelemetry openTelemetry) Returns a builder configured with the givenOpenTelemetryinstance.static SpringWebfluxClientTelemetrycreate(io.opentelemetry.api.OpenTelemetry openTelemetry) Returns a new instance configured with the givenOpenTelemetryinstance.
-
Method Details
-
create
Returns a new instance configured with the givenOpenTelemetryinstance. -
builder
public static SpringWebfluxClientTelemetryBuilder builder(io.opentelemetry.api.OpenTelemetry openTelemetry) Returns a builder configured with the givenOpenTelemetryinstance. -
addFilter
public void addFilter(List<org.springframework.web.reactive.function.client.ExchangeFilterFunction> exchangeFilterFunctions) Adds an instrumentedExchangeFilterFunctionto the provided list.- Parameters:
exchangeFilterFunctions- existing filter functions
-
addFilterAndRegisterReactorHook
public void addFilterAndRegisterReactorHook(List<org.springframework.web.reactive.function.client.ExchangeFilterFunction> exchangeFilterFunctions) Adds an instrumentedExchangeFilterFunctionto the provided list. Also registers the Reactor context propagation hook for reactive pipelines.- Parameters:
exchangeFilterFunctions- existing filter functions
-