Reputation: 1
I'm using twitter util futures in my project.
I want to add logging to trace a request through the components using MDC.
I couldn't find a good way to add that for twitter futures as there is no execution context that runs the callbacks. I couldn't find a way or any library implementation to refer to.
What is the better way to do this?
Thanks, Nag
Upvotes: 0
Views: 185
Reputation: 778
If you're using Twitter Futures because you're using Finagle or one of its sub-projects then that provides a Context for making data available across Futures used in a transaction.
Upvotes: 1