Exposing the JDK Flight Recorder as a Spring Boot Actuator Endpoint
...Every recording session gets its own unique Flight Recording ID. The endpoint returns this ID as plain text, in this case ID 1. This ID must be used to download the recorded data.