kit
kit copied to clipboard
Tracing support for thrift
Is it possible to add tracing support for Thrift ?
This would involve mirroring the Server and Client types, as in the other transport packages, and providing the relevant hooks, e.g. ServerBefore, ServerAfter, etc. Certainly possible.
Thrift has no concept of metadata/headers so you'll need to envelope your messages and have some way of figuring out if a message was enveloped or not. If only producing and consuming services under your wings this is obviously not difficult as you control the message payload, but in a polyglot environment you'll need to see what the already established patterns are. I suggest looking at finagle which has dealt with this exact issue.