public void OnDeQueueRequest(ITimeInterval itemInQueue) { itemInQueue.Stop(); long ticks = itemInQueue.Elapsed.Ticks; averageTimeInQueue.AddValue(ticks); averageTimeInAllQueues.AddValue(ticks); totalTimeInAllQueues.IncrementBy(ticks); }
internal void OnMessage(int numMsgsInBatch, int totalBytes) { averageBatchSize.AddValue(numMsgsInBatch); batchSizeBytesHistogram.AddData(totalBytes); }
public void OnEnQueueRequest(int numEnqueuedRequests, int queueLength) { numEnqueuedRequestsCounter.IncrementBy(numEnqueuedRequests); averageQueueSizeCounter.AddValue(queueLength); }