java.lang.Object
io.opentelemetry.instrumentation.spring.web.v3_1.internal.WebTelemetryUtil

public final class WebTelemetryUtil extends Object
Back-channel between the spring-web-3.1 library and the spring-boot-autoconfigure starter, used to configure the DefaultHttpClientInstrumenterBuilder held in a private field of SpringWebTelemetryBuilder without exposing it as public API.

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

  • Method Details

    • applyCommonConfig

      @CanIgnoreReturnValue public static SpringWebTelemetryBuilder applyCommonConfig(SpringWebTelemetryBuilder builder, io.opentelemetry.api.OpenTelemetry openTelemetry)
    • setBuilderExtractor

      public static void setBuilderExtractor(Function<SpringWebTelemetryBuilder,io.opentelemetry.instrumentation.api.incubator.builder.internal.DefaultHttpClientInstrumenterBuilder<org.springframework.http.HttpRequest,org.springframework.http.client.ClientHttpResponse>> builderExtractor)