AvnerSo
AvnerSo

Reputation: 1727

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

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

Upvotes: 4

Views: 73

Answers (0)

Related Questions