The short answer is “yes, you can”.

And here is the long answer. In order to trace requests that happen across your services you’ll have to do the following:

  • Use cls-rtracer in each of your services. Note that configuration options called `useHeader` and `headerName` can help you with that by reading request id from HTTP request headers (if it’s there, of course).
  • Send request id (``) as a HTTP header in all requests that are sent to downstream services.
  • Configure your services to stream their logs into a log collector service, like Logstash.

Once everything above is done, you’ll have shared request id as a part of collected logs.

Software engineer at Hazelcast. Node.js core collaborator. Architectural design and challenging problems are the things that I love in IT.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store