Improves OpenTelemetry span logging by correctly recording query duration even when a query exception occurs.
Why it matters
Previously, when a query exception happened, the OpenTelemetry span log showed a duration of zero at the query level, which made it difficult to accurately monitor and troubleshoot query performance. This improvement ensures the span duration reflects the real elapsed time regardless of query success or failure, enhancing observability and diagnostics.How to use it
This fix is applied internally to the OpenTelemetry integration in ClickHouse. Users do not need to take any manual action; query span durations will now automatically be logged correctly, including in cases where exceptions occur.