rajeshkumarchandolu commented on code in PR #12145:
URL: https://github.com/apache/ozone/pull/12145#discussion_r4705176111


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/protocol/SecretKeyProtocolServerSideTranslatorPB.java:
##########
@@ -117,8 +119,11 @@ public SCMSecretKeyResponse 
processRequest(SCMSecretKeyRequest request)
     } catch (IOException e) {
       RatisUtil.checkRatisException(e, scm.getSecurityProtocolRpcPort(),
           scm.getScmId(), scm.getHostname(), ROLE_TYPE);
+      TracingUtil.recordExceptionInCurrentSpan(e);
       scmSecurityResponse.setSuccess(false);
       scmSecurityResponse.setStatus(exceptionToResponseStatus(e));
+      
TracingUtil.addAttributesToCurrentSpan(OzoneTracingAttributes.ERROR_STATUS,

Review Comment:
   Right, recordException() sets the span status to ERROR, and that is what 
error=true finds. ozone.error.status is not a second status; it is additional 
detail. It carries the specific error code the protocol returns in its response 
(here e.g. GET_CA_CERT_FAILED), which is not part of the exception message, so 
failed requests can be filtered by a particular error as well as by "failed" in 
general.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to