Node.js / io.js - How can I log the request flow consistently given domains are out of date?

I am using domains to add request id

to my logs. This is very handy because it means I don't have to pass the request object globally, but I can still see the request context in which the db request was run and I can follow the process, each request is thrown no matter what layers in my code it was accessing.

Since domains are deprecated , what are my alternatives to keep this capability?

thank

+3


source to share





All Articles