diff --git a/src/Client/Connection.cpp b/src/Client/Connection.cpp index eea007a8608..4f7cf893328 100644 --- a/src/Client/Connection.cpp +++ b/src/Client/Connection.cpp @@ -506,7 +506,7 @@ void Connection::sendQuery( bool with_pending_data, std::function) { - OpenTelemetry::SpanHolder span("Connection::sendQuery()"); + OpenTelemetry::SpanHolder span("Connection::sendQuery()", OpenTelemetry::CLIENT); span.addAttribute("clickhouse.query_id", query_id_); span.addAttribute("clickhouse.query", query); span.addAttribute("target", [this] () { return this->getHost() + ":" + std::to_string(this->getPort()); });