v.20.11New Feature

Add tid and logTrace functions

Add tid and logTrace functions. This closes #9434. #15803 (flynn).
Introduces two new functions in ClickHouse: tid and logTrace.

Why it matters

These functions provide enhanced tracing and debugging capabilities by allowing users to retrieve the current thread identifier (tid) and log trace information (logTrace). This helps address the need for better diagnostics and performance monitoring within queries and processes.

How to use it

Users can call the new functions directly in their SQL queries. For example, use SELECT tid() to get the current thread ID, or SELECT logTrace('your message') to log trace information for debugging.