Reset context class loader for new thread
MODIFY
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/tracer/SupportabilityMetrics.java
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/tracer/SupportabilityMetrics.java
@@ -64,6 +64,7 @@ class SupportabilityMetrics {
runnable -> {
Thread result = new Thread(runnable, "supportability_metrics_reporter");
result.setDaemon(true);
+ result.setContextClassLoader(null);
return result;
})
.scheduleAtFixedRate(this::report, 5, 5, TimeUnit.SECONDS);

Reset context class loader for new thread (#2691)