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).

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

--

--

Distributed systems gazer. Node.js contributor. Occasional tech blogger and speaker.

Love podcasts or audiobooks? Learn on the go with our new app.

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
Andrey Pechkurov

Andrey Pechkurov

Distributed systems gazer. Node.js contributor. Occasional tech blogger and speaker.