ddimtirov / nuggets

nuggets is (yet another) utility library for Java
https://ddimtirov.github.io/nuggets/javadoc/io/github/ddimitrov/nuggets/package-summary.html
Apache License 2.0
4 stars 1 forks source link

Agent to enrich stack-trace across threads #49

Open ddimtirov opened 7 years ago

ddimtirov commented 7 years ago

An agent that enriches the stacktraces for frameworks like fork/join, parallel streams, akka, quasar, various ESB, etc. Automatically capture some context from the stack-switch point (i.e. task details, etc) and add it to the exception mesage. Maintain the history context in a threadlocal, handing off at the specified points.

May use a generic AOP tool, or our own DSL with custom bytecode instrumentation. Look at the Dart Zones for explicit API.