logging for debugging
augment QpsTracker to track error and expose stats on both period.