Example code for tracking requests in a distributed environment