tj / axon

message-oriented socket library for node.js heavily inspired by zeromq
MIT License
1.5k stars 155 forks source link

How would I go about tracing RPC(req-rep) calls? #159

Closed jacktuck closed 7 years ago

jacktuck commented 8 years ago

First off, I really like the look of axon - nice work @tj 👍

Now i'm not sure whether this is within the scope of the library (probably not) but nevertheless i'd like some thoughts on how i would trace RPC calls across many services.

For example, given a request to get a users profile, say i need to call a 'auth' and 'user' service. I would like to trace this 'get a users profile' request across the both services, so somehow a 'request id' would need to be persisted on subsequent calls.

Any thoughts? Thanks