v.21.1Improvements

Add OpenTelemetry Spans and Zipkin Export Example

Add more OpenTelemetry spans. Add an example of how to export the span data to Zipkin. #16535 (Alexander Kuzmenkov).
Enhanced OpenTelemetry Integration with Additional Spans and Zipkin Export Example.

Why it matters

This feature improves ClickHouse's observability by adding more OpenTelemetry spans, enabling finer-grained tracing of query execution and internal operations. Additionally, it includes an example demonstrating how to export span data to Zipkin, helping users better monitor and debug their ClickHouse instances.

How to use it

Users can enable the extended OpenTelemetry tracing by configuring their ClickHouse setup with the appropriate tracing options. They can refer to the included example to export span data to Zipkin by setting up the necessary OpenTelemetry Collector or compatible exporter. This typically involves configuring a trace dispatcher in ClickHouse and using the example as a template for integration with Zipkin-compatible backends.