public void addRequest ( long timeNS , long numEmptyResponses , long valueBytes , long keyBytes , long getAllAggregatedCount ) { // timing instrumentation (trace only) long startTimeNs = 0 ; if ( logger . isTraceEnabled ( ) ) { startTimeNs = System . nanoTime ( ) ; } long currentTime = time . milliseconds ( ) ; timeSensor . record ( ( double ) timeNS / voldemort . utils . Time . NS_PER_MS , currentTime ) ; emptyResponseKeysSensor . record ( numEmptyResponses , currentTime ) ; valueBytesSensor . record ( valueBytes , currentTime ) ; keyBytesSensor . record ( keyBytes , currentTime ) ; getAllKeysCountSensor . record ( getAllAggregatedCount , currentTime ) ; // timing instrumentation (trace only) if ( logger . isTraceEnabled ( ) ) { logger . trace ( "addRequest took " + ( System . nanoTime ( ) - startTimeNs ) + " ns." ) ; } }
Detailed request to track additional data about PUT GET and GET_ALL