node.js / io.js - How can I consistently log a request's flow considering domains are being deprecated?

78 Views Asked by At

I've been using domains to add a request id to my logs. This is very convenient because it means I don't have to pass my request object everywhere, but I can still see the request context that a db query ran in, and I can follow the process each request goes throw regardless of which layers in my code it accessed.

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

Thanks

0

There are 0 best solutions below