v.21.6New Feature

Add thread_name column to system.stack_trace

Add thread_name column in system.stack_trace. This closes #23256. #24124 (abel-cheng).
Added a thread_name column to the system.stack_trace table in ClickHouse.

Why it matters

This feature allows users to see the name of the thread associated with each stack trace entry, improving diagnostics and debugging by making stack trace data more informative and easier to correlate with running threads.

How to use it

Query the system.stack_trace table as usual; the new thread_name column will be available automatically and can be selected alongside other columns to get thread name information in stack traces.