v.21.1Improvements

Added ClickHouse exception fields to OpenTelemetry span log

Added ClickHouse exception and exception_code fields to opentelemetry span log. #32040 (Frank Chen).
Added exception and exception_code fields to the OpenTelemetry span log in ClickHouse.

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 the exception 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.