trace-agent icon indicating copy to clipboard operation
trace-agent copied to clipboard

Logging the thread name

Open mszurap opened this issue 1 year ago • 0 comments

When the trace agent is logging anything through it's interceptors, add the possibility to log the current thread's name, which is very useful in a multi-threaded application. For example a line with date and thread name logged would look like: 2024-07-16T21:11:58.904 [Scheduled Query Poller] TraceAgent (timing): public org.apache.hadoop.hive.metastore.api.ScheduledQueryPollResponse org.apache.hadoop.hive.metastore.HiveMetaStoreClient.scheduledQueryPoll(org.apache.hadoop.hive.metastore.api.ScheduledQueryPollRequest) throws org.apache.hadoop.hive.metastore.api.MetaException,org.apache.thrift.TException took 5 ms

mszurap avatar Jul 18 '24 08:07 mszurap