v.20.4Improvement

Add timestamp_ns Column to system.trace_log for High-Definition Trace Event Timelines

Add a timestamp_ns column to system.trace_log. It contains a high-definition timestamp of the trace event, and allows to build timelines of thread profiles ("flame charts"). #9696 (Alexander Kuzmenkov)
Add a timestamp_ns column to the system.trace_log table providing high-resolution timestamps for trace events.

Why it matters

This feature introduces a nanosecond-precision timestamp column in the system.trace_log, enabling detailed timeline analysis of thread profiles such as flame charts, which improves tracing accuracy and performance diagnostics.

How to use it

Users can query the timestamp_ns column in the system.trace_log table to obtain high-definition timestamps for trace events. No additional configuration is required; the column is added by default.