Switched from ALWAYS to KEEPALIVE
Fixed a bug that was accidentally causing leakage between traces that
shared the same heartbeat message for container requests.
Small change; moved a logging statement
Along with collecting statistics about successful and failed mappers and
reducers, remember the ending contexts, so that when decisions are made
based off these statistics, we can causally link the decision back to
the mappers and reducers.