getappmap / appmap-java

AppMap client agent for Java
Other
80 stars 14 forks source link

Record calls through a proxy #233

Closed apotterri closed 8 months ago

apotterri commented 10 months ago

Fixes #232 .

There turned out to be two aspects to this problem.

The first was the way the agent manages javassist ClassPools in a Java application server. An application server typically uses a separate ClassLoader hierarchy for each web application it loads, to isolate them from each other. The changes in 9fe3075 fix the agent so it operates correctly in such an environment.

The second aspect was enhancing the agent so it records calls made through a java.lang.reflect.Proxy that implements an interface that matches the config. Those changes are in 8bce824.

In addition, there are changes that fix some more checkstyle issues, as well as converting some more tests from JUnit 4 to JUnit 5.

apotterri commented 10 months ago

Preliminary version of the agent with these change: appmap-1.23.0-SNAPSHOT.jar.zip

appland-release commented 8 months ago

:tada: This PR is included in version 1.25.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: