I have a multilayer express.js application. I'd like to all logs in a single request to have a unique id to be able to search the logs on the id generated.
The problem is that this application is a multilayer app. It has a persistence and logic layers and the only option I see now to be able create logs with the same id in these layers is to pass the id on function calls.
This sound as a bad solution, can anyone advise?
Thanks!