Exception context with user data

I have a Play 2.7 application used by multiple users. When runtime exceptions started to occur, I found myself going through the stacktraces without knowing which user has been affected. What is your way of extending exception context with user data? I’m asking since 2.7 “requires” you to use Request objects to store HTTP context data and pass it around instead of thread-local context.

Thank you very much for any tips.

1 Like