One more exception for h2
MODIFY
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/AdditionalLibraryIgnoresMatcher.java
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/AdditionalLibraryIgnoresMatcher.java
@@ -234,7 +234,8 @@ public class AdditionalLibraryIgnoresMatcher<T extends TypeDescription>
|| name.startsWith("org.h2.jdbcx.")
// Some runnables that get instrumented
|| name.equals("org.h2.store.FileLock")
- || name.equals("org.h2.engine.DatabaseCloser")) {
+ || name.equals("org.h2.engine.DatabaseCloser")
+ || name.equals("org.h2.engine.OnExitDatabaseCloser")) {
return false;
}
return true;

One more exception for h2