diff --git a/instrumentation/spring/spring-webflux/spring-webflux-5.3/library/src/main/java/io/opentelemetry/instrumentation/spring/webflux/v5_3/internal/Experimental.java b/instrumentation/spring/spring-webflux/spring-webflux-5.3/library/src/main/java/io/opentelemetry/instrumentation/spring/webflux/v5_3/internal/Experimental.java index 429d0bdc63b2..d20a6da4251f 100644 --- a/instrumentation/spring/spring-webflux/spring-webflux-5.3/library/src/main/java/io/opentelemetry/instrumentation/spring/webflux/v5_3/internal/Experimental.java +++ b/instrumentation/spring/spring-webflux/spring-webflux-5.3/library/src/main/java/io/opentelemetry/instrumentation/spring/webflux/v5_3/internal/Experimental.java @@ -15,7 +15,7 @@ * APIs (or a version of them) may be promoted to the public stable API in the future, but no * guarantees are made. */ -public class Experimental { +public final class Experimental { @Nullable private static volatile BiConsumer<SpringWebfluxClientTelemetryBuilder, Boolean> @@ -25,14 +25,14 @@ public class Experimental { private static volatile BiConsumer<SpringWebfluxServerTelemetryBuilder, Boolean> setEmitExperimentalServerTelemetry; - public void setEmitExperimentalTelemetry( + public static void setEmitExperimentalTelemetry( SpringWebfluxClientTelemetryBuilder builder, boolean emitExperimentalTelemetry) { if (setEmitExperimentalClientTelemetry != null) { setEmitExperimentalClientTelemetry.accept(builder, emitExperimentalTelemetry); } } - public void setEmitExperimentalTelemetry( + public static void setEmitExperimentalTelemetry( SpringWebfluxServerTelemetryBuilder builder, boolean emitExperimentalTelemetry) { if (setEmitExperimentalServerTelemetry != null) { setEmitExperimentalServerTelemetry.accept(builder, emitExperimentalTelemetry); @@ -48,4 +48,6 @@ public static void setSetEmitExperimentalServerTelemetry( BiConsumer<SpringWebfluxServerTelemetryBuilder, Boolean> setEmitExperimentalServerTelemetry) { Experimental.setEmitExperimentalServerTelemetry = setEmitExperimentalServerTelemetry; } + + private Experimental() {} }