Wednesday, 15 March 2017

How to track data in nodejs with microservices

I'm dealing with an application using multiple microservices.

The application receieves data and processes it, and I'd like to have a way to monitor everything the received data is going throughout the microservices.

Since the platform is nodejs we're dealing with asynchronous processing, logs wont always be written one after the other, and since the data does not have aמ ID the logs cannot be filtered in any convenient way.

Is there any way to track the data from the first moment it enters the application till the end, moving between the microservices without having to pass a generate id between all the methods.

Obviously that id will be passed between the microserives but within each one, I'd like to keep the code clean.

I'm using winston to log, maybe something could fit there.

Thanks in advance, any suggestion would be highly appreciated.



via Kesem David

No comments:

Post a Comment