Handle short-lived processes with suspendShutdown or snapshotOnExit
masterBecause FlowTracker runs inside the same JVM as the application, it exits when the application exits. For short-lived processes where you need to inspect the data before the JVM shuts down, use one of these two options:
suspendShutdown: Prevents the JVM from exiting immediately when the application ends, allowing you to inspect the FlowTracker UI.snapshotOnExit: Automatically writes a ZIP file containing a dump of FlowTracker data and a copy of the UI (HTML/JS) when the JVM exits.
Note on Snapshots: The HTML in a snapshot must be served via a webserver (e.g., jwebserver) due to browser security restrictions. You can also manually grab snapshots while the app is running from http://localhost:8011/snapshot/minimized or http://localhost:8011/snapshot/full.
# Example: Using snapshotOnExit with Maven integration tests
./mvnw integration-test -Dtest=PetClinicIntegrationTests -DargLine="-javaagent:$FT_JAR=trackCreation;snapshotOnExit=petclinic-snapshot.zip $FT_JVMOPTS"