* Monitoring invocations of a REST API: https://www.morling.dev/blog/rest-api-monitoring-with-custom...
* Tracking SQL queries issued by your ORM: https://www.javaadvent.com/2021/12/keep-your-sql-in-check-wi...
The latter is about injecting event-emitting code with a Java Agent rather than manually implementing custom events (latest Hibernate ORM version comes with JFR support OOTB, too).