v.21.12Improvements
Added ClickHouse exception fields to OpenTelemetry span log
Added ClickHouseexceptionandexception_codefields to opentelemetry span log. #32040 (Frank Chen).
Why it matters
This feature enhances observability by providing detailed error information within OpenTelemetry traces. It allows users to capture and analyze exceptions and their corresponding error codes directly from span logs, facilitating easier debugging and monitoring of queries and operations.How to use it
Users can access theexception and exception_code fields as part of the OpenTelemetry span logs emitted by ClickHouse without additional configuration. These fields will automatically include exception details when errors occur during query execution or other operations.