Use jfr-constants-generator to generate JFR event code
mainThe jfr-constants-generator is an annotation processor designed to automatically generate Java code for JDK Flight Recorder (JFR) events and types.
When integrated into a project, the processor will generate classes based on your annotations. These generated classes are placed in the following directory within your project's target folder:
target/annotations/generated-sources