Updated the enum SpanKind usage

This commit is contained in:
Jony Mohajan 2024-10-11 14:16:03 -07:00
parent cd126e60a2
commit a278e1430b
3 changed files with 3 additions and 3 deletions

View File

@ -854,7 +854,7 @@ namespace
query_context->getClientInfo().client_trace_context, query_context->getClientInfo().client_trace_context,
query_context->getSettingsRef(), query_context->getSettingsRef(),
query_context->getOpenTelemetrySpanLog()); query_context->getOpenTelemetrySpanLog());
thread_trace_context->root_span.kind = OpenTelemetry::SERVER; thread_trace_context->root_span.kind = OpenTelemetry::SpanKind::SERVER;
thread_trace_context->root_span.addAttribute("http.referer", query_context->getClientInfo().http_referer); thread_trace_context->root_span.addAttribute("http.referer", query_context->getClientInfo().http_referer);
thread_trace_context->root_span.addAttribute("http.user.agent", query_context->getClientInfo().http_user_agent); thread_trace_context->root_span.addAttribute("http.user.agent", query_context->getClientInfo().http_user_agent);
thread_trace_context->root_span.addAttribute("http.method", toString(query_context->getClientInfo().http_method)); thread_trace_context->root_span.addAttribute("http.method", toString(query_context->getClientInfo().http_method));

View File

@ -1058,7 +1058,7 @@ void HTTPHandler::handleRequest(HTTPServerRequest & request, HTTPServerResponse
client_trace_context, client_trace_context,
context->getSettingsRef(), context->getSettingsRef(),
context->getOpenTelemetrySpanLog()); context->getOpenTelemetrySpanLog());
thread_trace_context->root_span.kind = OpenTelemetry::SERVER; thread_trace_context->root_span.kind = OpenTelemetry::SpanKind::SERVER;
thread_trace_context->root_span.addAttribute("clickhouse.uri", request.getURI()); thread_trace_context->root_span.addAttribute("clickhouse.uri", request.getURI());
thread_trace_context->root_span.addAttribute("http.referer", session->getClientInfo().http_referer); thread_trace_context->root_span.addAttribute("http.referer", session->getClientInfo().http_referer);
thread_trace_context->root_span.addAttribute("http.user.agent", session->getClientInfo().http_user_agent); thread_trace_context->root_span.addAttribute("http.user.agent", session->getClientInfo().http_user_agent);

View File

@ -385,7 +385,7 @@ void TCPHandler::runImpl()
query_context->getClientInfo().client_trace_context, query_context->getClientInfo().client_trace_context,
query_context->getSettingsRef(), query_context->getSettingsRef(),
query_context->getOpenTelemetrySpanLog()); query_context->getOpenTelemetrySpanLog());
thread_trace_context->root_span.kind = OpenTelemetry::SERVER; thread_trace_context->root_span.kind = OpenTelemetry::SpanKind::SERVER;
thread_trace_context->root_span.addAttribute("http.referer", query_context->getClientInfo().http_referer); thread_trace_context->root_span.addAttribute("http.referer", query_context->getClientInfo().http_referer);
thread_trace_context->root_span.addAttribute("http.user.agent", query_context->getClientInfo().http_user_agent); thread_trace_context->root_span.addAttribute("http.user.agent", query_context->getClientInfo().http_user_agent);
thread_trace_context->root_span.addAttribute("http.method", toString(query_context->getClientInfo().http_method)); thread_trace_context->root_span.addAttribute("http.method", toString(query_context->getClientInfo().http_method));