Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging the thread name #23

Open
mszurap opened this issue Jul 18, 2024 · 0 comments
Open

Logging the thread name #23

mszurap opened this issue Jul 18, 2024 · 0 comments

Comments

@mszurap
Copy link
Contributor

mszurap commented Jul 18, 2024

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 pushed a commit to mszurap/trace-agent that referenced this issue Jul 18, 2024
mszurap pushed a commit to mszurap/trace-agent that referenced this issue Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant