Hi,
Im trying to add requestId to each log message.
I doscover that this package is the only one that can do something like this.
Im using mongodb version 2.2.11 and use promise chain to handle the result.
When the result returns, the namespace losing the context before the mongo call.
I tried to namespace.bind the function find({...}).toArray or findOne(...), using promises(My preferable way), and even tried it using callback style, but i get "cannot read property 's' of undefined".
So i even dont have any workaround for the issue.
Please help me to solve this! I tried everything to do the request tracking and i dont have anything!
Thank you
Hi, Im trying to add requestId to each log message. I doscover that this package is the only one that can do something like this. Im using mongodb version 2.2.11 and use promise chain to handle the result. When the result returns, the namespace losing the context before the mongo call. I tried to namespace.bind the function find({...}).toArray or findOne(...), using promises(My preferable way), and even tried it using callback style, but i get "cannot read property 's' of undefined". So i even dont have any workaround for the issue. Please help me to solve this! I tried everything to do the request tracking and i dont have anything! Thank you