v.23.3Improvement

Now X-ClickHouse-Query-Id and X-ClickHouse-Timezone Headers Added to All HTTP Responses

Now X-ClickHouse-Query-Id and X-ClickHouse-Timezone headers are added to responses in all queries via HTTP protocol. Previously it was done only for SELECT queries. #46364 (Anton Popov).
Added X-ClickHouse-Query-Id and X-ClickHouse-Timezone headers to HTTP responses for all query types, not just SELECT queries.

Why it matters

Previously, the X-ClickHouse-Query-Id and X-ClickHouse-Timezone headers were included only in responses to SELECT queries over HTTP. This feature extends header inclusion to all query responses, improving consistency and allowing clients to track query IDs and timezones for any query executed via HTTP, which enhances debugging and logging capabilities.

How to use it

No additional configuration is needed. When you execute any query over the HTTP protocol, the server automatically includes the X-ClickHouse-Query-Id and X-ClickHouse-Timezone headers in the response.