I had been thinking a bit about how this could be done.. Some thoughts I had were AOP and JMX.. But are there any libraries that could do something similar to the Rust crate tracing
Particularly useful if you were say trying to make sense of the iterator logic say in Java's ConcurrentHashMap - circa lines 3300. (Traverser, & pushState/recoverState methods).
Are there any similar libraries that allow you to annotate constructors/method calls and fire off events, that a listener could collate and aggregate back for you in the Java sphere that anyone knows of?