Enable kubernetes-client strict context check
MODIFY
instrumentation/kubernetes-client-7.0/javaagent/build.gradle.kts
instrumentation/kubernetes-client-7.0/javaagent/build.gradle.kts
@@ -22,5 +22,4 @@ dependencies {
tasks.withType<Test>().configureEach {
// TODO run tests both with and without experimental span attributes
jvmArgs("-Dotel.instrumentation.kubernetes-client.experimental-span-attributes=true")
- jvmArgs("-Dio.opentelemetry.javaagent.shaded.io.opentelemetry.context.enableStrictContext=false")
}

MODIFY
instrumentation/okhttp/okhttp-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/okhttp/v3_0/OkHttp3IgnoredTypesConfigurer.java
instrumentation/okhttp/okhttp-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/okhttp/v3_0/OkHttp3IgnoredTypesConfigurer.java
@@ -20,6 +20,8 @@ public class OkHttp3IgnoredTypesConfigurer implements IgnoredTypesConfigurer {
// instrumented to allow async propagation.
builder.ignoreTaskClass("okhttp3.internal.concurrent.TaskRunner");
// ConnectionPool constructor creates an anonymous Runnable for cleanup
- builder.ignoreTaskClass("okhttp3.ConnectionPool");
+ builder
+ .ignoreTaskClass("okhttp3.ConnectionPool")
+ .ignoreTaskClass("okhttp3.internal.connection.RealConnectionPool");
}
}

Enable kubernetes-client strict context check (#3945)