public void collect(Thread thread){
  final StackTraceElement[] stackTrace=thread.getStackTrace();
  collectByKey(GLOBAL,stackTrace);
}

public void collect ( Thread thread ) { final StackTraceElement [ ] stackTrace = thread . getStackTrace ( ) ; collectByKey ( GLOBAL , stackTrace ) ; }
override this method to collect based other criteria < p / > if the application knows that a certain type of task happens in a certain thread , it is possible to group the information by that type of task . < p / > example collect the information grouped by request path , api call , or actor . < p / > it ' s advisable to either override this method or to call collectbykey directly < p / > collecting per thread usually produces too much information . some idle threads are also irrelevant for instance idle worker threads and skew the data .
