mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Updated the enum SpanKind usage
This commit is contained in:
parent
cd126e60a2
commit
a278e1430b
@ -854,7 +854,7 @@ namespace
|
||||
query_context->getClientInfo().client_trace_context,
|
||||
query_context->getSettingsRef(),
|
||||
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.user.agent", query_context->getClientInfo().http_user_agent);
|
||||
thread_trace_context->root_span.addAttribute("http.method", toString(query_context->getClientInfo().http_method));
|
||||
|
@ -1058,7 +1058,7 @@ void HTTPHandler::handleRequest(HTTPServerRequest & request, HTTPServerResponse
|
||||
client_trace_context,
|
||||
context->getSettingsRef(),
|
||||
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("http.referer", session->getClientInfo().http_referer);
|
||||
thread_trace_context->root_span.addAttribute("http.user.agent", session->getClientInfo().http_user_agent);
|
||||
|
@ -385,7 +385,7 @@ void TCPHandler::runImpl()
|
||||
query_context->getClientInfo().client_trace_context,
|
||||
query_context->getSettingsRef(),
|
||||
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.user.agent", query_context->getClientInfo().http_user_agent);
|
||||
thread_trace_context->root_span.addAttribute("http.method", toString(query_context->getClientInfo().http_method));
|
||||
|
Loading…
Reference in New Issue
Block a user