Skip to content

Commit

Permalink
Updated the enum SpanKind usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jonymohajanGmail committed Oct 11, 2024
1 parent cd126e6 commit a278e14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Server/GRPCServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/Server/HTTPHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Server/TCPHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit a278e14

Please sign in to comment.