Remove unused configuration class (#14300)

This commit is contained in:
Jay DeLuca 2025-07-21 16:24:03 -04:00 committed by GitHub
parent 3cd0aa69fc
commit 0af85f0433
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 23 deletions

View File

@ -62,8 +62,6 @@ dependencies {
}
tasks.withType<Test>().configureEach {
// TODO run tests both with and without experimental span attributes
jvmArgs("-Dotel.instrumentation.spring-webflux.experimental-span-attributes=true")
// required on jdk17
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")

View File

@ -1,21 +0,0 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.spring.webflux.v5_0;
import io.opentelemetry.javaagent.bootstrap.internal.AgentInstrumentationConfig;
public final class SpringWebfluxConfig {
private static final boolean CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES =
AgentInstrumentationConfig.get()
.getBoolean("otel.instrumentation.spring-webflux.experimental-span-attributes", false);
public static boolean captureExperimentalSpanAttributes() {
return CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES;
}
private SpringWebfluxConfig() {}
}