v.20.11New Feature

Added Initial OpenTelemetry Support in ClickHouse

Added initial OpenTelemetry support. ClickHouse now accepts OpenTelemetry traceparent headers over Native and HTTP protocols, and passes them downstream in some cases. The trace spans for executed queries are saved into the system.opentelemetry_span_log table. #14195 (Alexander Kuzmenkov).
Added initial OpenTelemetry support in ClickHouse, enabling acceptance of OpenTelemetry traceparent headers over Native and HTTP protocols and logging trace spans of executed queries.

Why it matters

This feature allows ClickHouse to integrate with distributed tracing systems by propagating OpenTelemetry traceparent headers and storing trace spans in a dedicated system table. It helps users monitor and analyze query execution performance and trace requests across services.

How to use it

ClickHouse automatically accepts OpenTelemetry traceparent headers sent over Native and HTTP protocols. Trace spans for executed queries are stored in the system.opentelemetry_span_log table, which users can query to analyze trace information.