From f3abb76e5775931f44fcba8420a95357b5343b70 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov Date: Tue, 20 Oct 2020 11:13:21 +0300 Subject: [PATCH] disable traceparent header in Arcadia it interferes with the test_clickhouse.TestTracing.test_tracing_via_http_proxy[traceparent] test --- src/Server/HTTPHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Server/HTTPHandler.cpp b/src/Server/HTTPHandler.cpp index f2afc2c860f..5933800d710 100644 --- a/src/Server/HTTPHandler.cpp +++ b/src/Server/HTTPHandler.cpp @@ -315,6 +315,9 @@ void HTTPHandler::processQuery( request.get("X-ClickHouse-Query-Id", ""))); // Parse the OpenTelemetry traceparent header. + // Disable in Arcadia -- it interferes with the + // test_clickhouse.TestTracing.test_tracing_via_http_proxy[traceparent] test. +#if !defined(ARCADIA_BUILD) if (request.has("traceparent")) { std::string opentelemetry_traceparent = request.get("traceparent"); @@ -329,6 +332,7 @@ void HTTPHandler::processQuery( context.getClientInfo().opentelemetry_tracestate = request.get("tracestate", ""); } +#endif /// The client can pass a HTTP header indicating supported compression method (gzip or deflate). String http_response_compression_methods = request.get("Accept-Encoding", "");