Skip to content

Logging the thread name #23

Description

@mszurap

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions