Hi @Sefra, welcome to our forum 
If you use slf4j version 1.4.1 or higher or if you are using log4j2, than this will be automatically captured. If you are using something else, then these are the two immediate options I can think of:
- Add slf4j as your logging abstraction layer, while still using your current logging framework
- Use our public API, which allows to capture any Exception as an error in the right context of the span/transaction active at the time of error occurrence.
I hope this helps!