public void updateScan(long time, long responseCellSize, long blockBytesScanned) {
    if (isEnableTableLatenciesMetrics()) {
      scanTimeHistogram.update(time);
      scanSizeHistogram.update(responseCellSize);
      if (blockBytesScanned > 0) {
        blockBytesScannedCount.increment(blockBytesScanned);
        scanBlockBytesScanned.update(blockBytesScanned);
      }
    }
  }
Update the scan metrics.
@param time              response time of scan
@param responseCellSize  size of the scan resposne
@param blockBytesScanned size of block bytes scanned to retrieve the response
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/metrics/MetricsTableRequests.java