trace-agent
trace-agent copied to clipboard
Logging the thread name
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