public boolean isTrackingMetrics() {
    return this.metrics != null;
  }
Tracks the relevant server side metrics during scans. null when metrics should not be tracked
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ScannerContext.java