question: public void collect ( Thread thread ) { final StackTraceElement [ ] stackTrace = thread . getStackTrace ( ) ; collectByKey ( GLOBAL , stackTrace ) ; }
target:  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.