Use direct caffeine executor.
MODIFY
instrumentation-api-caching/src/main/java/io/opentelemetry/instrumentation/api/caching/CacheBuilder.java
instrumentation-api-caching/src/main/java/io/opentelemetry/instrumentation/api/caching/CacheBuilder.java
@@ -52,6 +52,8 @@ public final class CacheBuilder {
}
if (executor != null) {
caffeine.executor(executor);
+ } else {
+ caffeine.executor(Runnable::run);
}
@SuppressWarnings("unchecked")
com.github.benmanes.caffeine.cache.Cache<K, V> delegate =

Use direct caffeine executor. (#2632)