getappmap / appmap-java

AppMap client agent for Java
Other
81 stars 15 forks source link

Java sets a default value for appmap_dir when creating appmap.yml, and uses it when saving AppMaps #186

Closed apotterri closed 1 year ago

apotterri commented 1 year ago

The system property appmap.output.directory controls the directory where the Java agent will save AppMaps. (Note that the agent itself does not save remote recordings. That's up to the client that sends the HTTP DELETE /_appmap/record request.)

If appmap.output.directory is set, it's value will be used. If this value doesn't match the setting for appmap_dir in appmap.yml, a warning will be issued.

If it's not set, and appmap.yml contains a setting for appmap_dir, that value will be used.

If it's not set, and appmap.yml does not contain appmap_dir (or doesn't exist), a default value will be chosen. The agent will check the last-modified time on pom.xml and build.gradle and base the setting on whichever is newer. If neither exists, it will default to tmp/appmap.

When creating a default appmap.yml, appmap_dir will be set to appmap.output.directory.

appland-release commented 1 year ago

:tada: This issue has been resolved in version 1.20.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: