Add tracking of latency and failures for hadoop api calls