Disable controller and view spans by default (#10042)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
This commit is contained in:
parent
f35dddcf63
commit
fdeb032b33
|
|
@ -76,6 +76,8 @@ tasks {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,3 +27,7 @@ configurations.testRuntimeClasspath {
|
|||
force("com.fasterxml.jackson.module:jackson-module-afterburner:2.15.3")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,3 +16,8 @@ dependencies {
|
|||
testImplementation("io.dropwizard:dropwizard-views-freemarker:0.7.0")
|
||||
testImplementation("io.dropwizard:dropwizard-views-mustache:0.7.0")
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,3 +32,7 @@ tasks {
|
|||
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ tasks {
|
|||
"-Dotel.instrumentation.executors.include=io.opentelemetry.javaagent.instrumentation.executors.ExecutorInstrumentationTest\$CustomThreadPoolExecutor,io.opentelemetry.javaagent.instrumentation.executors.ThreadPoolExecutorTest\$RunnableCheckingThreadPoolExecutor"
|
||||
)
|
||||
jvmArgs("-Djava.awt.headless=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
||||
check {
|
||||
|
|
|
|||
|
|
@ -86,5 +86,6 @@ tasks {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,5 +74,6 @@ tasks {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ tasks {
|
|||
jvmArgs("-Dotel.javaagent.experimental.thread-propagation-debugger.enabled=false")
|
||||
jvmArgs("-Dotel.instrumentation.grpc.capture-metadata.client.request=some-client-key")
|
||||
jvmArgs("-Dotel.instrumentation.grpc.capture-metadata.server.request=some-server-key")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
|
||||
// exclude our grpc library instrumentation, the ContextStorageOverride contained within it
|
||||
// breaks the tests
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ dependencies {
|
|||
tasks {
|
||||
test {
|
||||
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,6 +79,8 @@ tasks.withType<Test>().configureEach {
|
|||
|
||||
// TODO run tests both with and without experimental span attributes
|
||||
jvmArgs("-Dotel.instrumentation.hibernate.experimental-span-attributes=true")
|
||||
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
|
|
|||
|
|
@ -31,4 +31,6 @@ tasks.withType<Test>().configureEach {
|
|||
|
||||
// TODO run tests both with and without experimental span attributes
|
||||
jvmArgs("-Dotel.instrumentation.hibernate.experimental-span-attributes=true")
|
||||
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,3 +25,6 @@ dependencies {
|
|||
testImplementation("io.dropwizard:dropwizard-testing:0.7.1")
|
||||
testImplementation("javax.xml.bind:jaxb-api:2.2.3")
|
||||
}
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,3 +24,9 @@ dependencies {
|
|||
|
||||
testImplementation("javax.ws.rs:javax.ws.rs-api:2.0")
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,4 +57,5 @@ tasks.withType<Test>().configureEach {
|
|||
|
||||
// TODO run tests both with and without experimental span attributes
|
||||
jvmArgs("-Dotel.instrumentation.jaxrs.experimental-span-attributes=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,5 +72,6 @@ tasks {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,3 +16,9 @@ dependencies {
|
|||
testInstrumentation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-annotations:javaagent"))
|
||||
testInstrumentation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-jersey-2.0:javaagent"))
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,5 +78,6 @@ tasks {
|
|||
withType<Test>().configureEach {
|
||||
// TODO run tests both with and without experimental span attributes
|
||||
jvmArgs("-Dotel.instrumentation.jaxrs.experimental-span-attributes=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ tasks {
|
|||
withType<Test>().configureEach {
|
||||
// TODO run tests both with and without experimental span attributes
|
||||
jvmArgs("-Dotel.instrumentation.jaxrs.experimental-span-attributes=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,5 @@ tasks.withType<Test>().configureEach {
|
|||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("--add-exports=java.base/sun.misc=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,4 +73,5 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,3 +20,9 @@ dependencies {
|
|||
|
||||
testImplementation("jakarta.ws.rs:jakarta.ws.rs-api:3.0.0")
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,5 +42,6 @@ tasks {
|
|||
withType<Test>().configureEach {
|
||||
// TODO run tests both with and without experimental span attributes
|
||||
jvmArgs("-Dotel.instrumentation.jaxrs.experimental-span-attributes=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,5 +45,6 @@ tasks {
|
|||
withType<Test>().configureEach {
|
||||
// TODO run tests both with and without experimental span attributes
|
||||
jvmArgs("-Dotel.instrumentation.jaxrs.experimental-span-attributes=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,4 +52,5 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,4 +45,5 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,4 +28,5 @@ tasks.withType<Test>().configureEach {
|
|||
jvmArgs("--add-exports=java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED")
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,4 +20,5 @@ tasks.withType<Test>().configureEach {
|
|||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("--add-exports=java.base/sun.misc=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,4 +74,5 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,3 +14,7 @@ dependencies {
|
|||
library("javax.xml.ws:jaxws-api:2.0")
|
||||
implementation(project(":instrumentation:jaxws:jaxws-common:javaagent"))
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,4 +24,5 @@ tasks.withType<Test>().configureEach {
|
|||
jvmArgs("--add-exports=java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED")
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,3 +14,6 @@ dependencies {
|
|||
library("javax.jws:javax.jws-api:1.1")
|
||||
implementation(project(":instrumentation:jaxws:jaxws-common:javaagent"))
|
||||
}
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,3 +90,6 @@ tasks {
|
|||
dependsOn(testing.suites)
|
||||
}
|
||||
}
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,3 +33,9 @@ dependencies {
|
|||
// JSF 4+ requires CDI instead of BeanManager, the test should be upgraded first
|
||||
// latestDepTestLibrary("org.glassfish:jakarta.faces:4.+")
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,3 +60,7 @@ tasks {
|
|||
dependsOn(testing.suites)
|
||||
}
|
||||
}
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,3 +33,9 @@ dependencies {
|
|||
// JSF 4+ requires CDI instead of BeanManager, the test should be upgraded first
|
||||
// latestDepTestLibrary("org.apache.myfaces.core:myfaces-impl:4.+")
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,3 +35,6 @@ tasks {
|
|||
}
|
||||
}
|
||||
}
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,4 +34,6 @@ tasks.withType<Test>().configureEach {
|
|||
// TODO run tests both with and without experimental log attributes
|
||||
jvmArgs("-Dotel.instrumentation.log4j-appender.experimental.capture-mdc-attributes=*")
|
||||
jvmArgs("-Dotel.instrumentation.log4j-appender.experimental-log-attributes=true")
|
||||
jvmArgs("-Dotel.instrumentation.log4j-appender.experimental-log-attributes=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,3 +11,7 @@ dependencies {
|
|||
testCompileOnly("biz.aQute.bnd:biz.aQute.bnd.annotation:7.0.0")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,3 +91,7 @@ tasks {
|
|||
dependsOn(testing.suites)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,3 +85,6 @@ if (!(findProperty("testLatestDeps") as Boolean)) {
|
|||
}
|
||||
}
|
||||
}
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,3 +80,6 @@ tasks {
|
|||
configurations.configureEach {
|
||||
exclude("org.eclipse.jetty.websocket", "websocket-client")
|
||||
}
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,3 +51,7 @@ tasks {
|
|||
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ tasks {
|
|||
}
|
||||
include("**/ReactorNettyConnectionSpanTest.*")
|
||||
jvmArgs("-Dotel.instrumentation.netty.connection-telemetry.enabled=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
||||
test {
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ tasks {
|
|||
include("**/ReactorNettyConnectionSpanTest.*", "**/ReactorNettyClientSslTest.*")
|
||||
jvmArgs("-Dotel.instrumentation.netty.ssl-telemetry.enabled=true")
|
||||
jvmArgs("-Dotel.instrumentation.reactor-netty.connection-telemetry.enabled=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
||||
test {
|
||||
|
|
|
|||
|
|
@ -31,3 +31,7 @@ dependencies {
|
|||
testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
|
||||
testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,3 +15,7 @@ dependencies {
|
|||
|
||||
testImplementation(project(":instrumentation:restlet:restlet-1.1:testing"))
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,3 +41,7 @@ if (findProperty("testLatestDeps") as Boolean) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,3 +27,7 @@ if (findProperty("testLatestDeps") as Boolean) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,4 +29,6 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/sun.nio.ch=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,4 +18,5 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/sun.nio.ch=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ tasks {
|
|||
excludeTestsMatching("RocketMqClientSuppressReceiveSpanTest")
|
||||
}
|
||||
jvmArgs("-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
||||
check {
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ tasks.withType<Test>().configureEach {
|
|||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
|
||||
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ tasks.withType<Test>().configureEach {
|
|||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
|
||||
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,5 +50,6 @@ tasks {
|
|||
jvmArgs("--add-opens=java.base/java.lang.invoke=ALL-UNNAMED")
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ tasks {
|
|||
jvmArgs("--add-opens=java.base/java.lang.invoke=ALL-UNNAMED")
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
||||
check {
|
||||
|
|
|
|||
|
|
@ -36,3 +36,7 @@ configurations.testRuntimeClasspath {
|
|||
force("org.slf4j:slf4j-api:1.7.36")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
|
||||
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
|
||||
}
|
||||
|
||||
configurations.testRuntimeClasspath {
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ tasks {
|
|||
jvmArgs("--add-modules=java.se")
|
||||
// add offset to default port values
|
||||
jvmArgs("-Djboss.socket.binding.port-offset=300")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
|
||||
// remove logback-classic from classpath
|
||||
classpath = classpath.filter {
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
|
||||
|
||||
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ tasks.withType<Test>().configureEach {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
||||
configurations.testRuntimeClasspath {
|
||||
|
|
|
|||
|
|
@ -27,3 +27,7 @@ dependencies {
|
|||
|
||||
latestDepTestLibrary("org.apache.struts:struts2-core:6.0.+")
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,3 +28,7 @@ dependencies {
|
|||
testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
|
||||
testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,5 +26,6 @@ dependencies {
|
|||
tasks {
|
||||
withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.servlet.experimental.capture-request-parameters=test-parameter")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,5 +36,6 @@ tasks {
|
|||
// required on jdk17
|
||||
jvmArgs("--add-opens=java.base/java.util=ALL-UNNAMED")
|
||||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,3 +20,7 @@ dependencies {
|
|||
bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
|
||||
bootstrap(project(":instrumentation:undertow-1.4:bootstrap"))
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,3 +95,7 @@ configurations.configureEach {
|
|||
}
|
||||
}
|
||||
}
|
||||
tasks.withType<Test>().configureEach {
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
||||
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,12 +34,12 @@ public final class ExperimentalConfig {
|
|||
|
||||
public boolean controllerTelemetryEnabled() {
|
||||
return config.getBoolean(
|
||||
"otel.instrumentation.common.experimental.controller-telemetry.enabled", true);
|
||||
"otel.instrumentation.common.experimental.controller-telemetry.enabled", false);
|
||||
}
|
||||
|
||||
public boolean viewTelemetryEnabled() {
|
||||
return config.getBoolean(
|
||||
"otel.instrumentation.common.experimental.view-telemetry.enabled", true);
|
||||
"otel.instrumentation.common.experimental.view-telemetry.enabled", false);
|
||||
}
|
||||
|
||||
public boolean messagingReceiveInstrumentationEnabled() {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ class QuarkusSmokeTest extends SmokeTest {
|
|||
|
||||
then:
|
||||
countSpansByName(traces, 'GET /hello') == 1
|
||||
countSpansByName(traces, 'HelloResource.hello') == 1
|
||||
|
||||
[currentAgentVersion] as Set == findResourceAttribute(traces, "telemetry.distro.version")
|
||||
.map { it.stringValue }
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ class SpringBootSmokeTest extends SmokeTest {
|
|||
then: "spans are exported"
|
||||
response.contentUtf8() == "Hi!"
|
||||
countSpansByName(traces, 'GET /greeting') == 1
|
||||
countSpansByName(traces, 'WebController.greeting') == 1
|
||||
countSpansByName(traces, 'WebController.withSpan') == 1
|
||||
|
||||
then: "thread details are recorded"
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ class SpringBootWithSamplingSmokeTest extends SmokeTest {
|
|||
|
||||
then:
|
||||
// since sampling is enabled, not really expecting to receive NUM_TRIES spans
|
||||
Math.abs(countSpansByName(traces, 'WebController.greeting') - (SAMPLER_PROBABILITY * NUM_TRIES)) <= ALLOWED_DEVIATION
|
||||
Math.abs(countSpansByName(traces, 'GET /greeting') - (SAMPLER_PROBABILITY * NUM_TRIES)) <= ALLOWED_DEVIATION
|
||||
|
||||
cleanup:
|
||||
|
|
|
|||
Loading…
Reference in New Issue