io.opentelemetry.instrumentation.spring.webmvc.v5_3.internal.SpringMvcBuilderUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-spring-webmvc-5.3 Show documentation
Show all versions of opentelemetry-spring-webmvc-5.3 Show documentation
Instrumentation of Java libraries using OpenTelemetry.
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.spring.webmvc.v5_3.internal;
import io.opentelemetry.instrumentation.api.incubator.builder.internal.DefaultHttpServerInstrumenterBuilder;
import io.opentelemetry.instrumentation.spring.webmvc.v5_3.SpringWebMvcTelemetryBuilder;
import java.util.function.Function;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* This class is internal and is hence not for public use. Its APIs are unstable and can change at
* any time.
*/
public final class SpringMvcBuilderUtil {
private SpringMvcBuilderUtil() {}
// allows access to the private field for the spring starter
private static Function<
SpringWebMvcTelemetryBuilder,
DefaultHttpServerInstrumenterBuilder>
builderExtractor;
public static Function<
SpringWebMvcTelemetryBuilder,
DefaultHttpServerInstrumenterBuilder>
getBuilderExtractor() {
return builderExtractor;
}
public static void setBuilderExtractor(
Function<
SpringWebMvcTelemetryBuilder,
DefaultHttpServerInstrumenterBuilder>
builderExtractor) {
SpringMvcBuilderUtil.builderExtractor = builderExtractor;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy