mrproliu commented on issue #12882:
URL: https://github.com/apache/skywalking/issues/12882#issuecomment-2556094251

   > When the HTTP request returns a status code of 4xx or 5xx, span is marked 
as an error.
   
   For now, the Go agent only sets the response status code into the span as a 
tag. Can you check if the tag is in the error span? Then I think we can set the 
error when the response status code is bigger or equals `400`. 
   
   > The Skywalking Go toolkit provides a method to manually set whether the 
span is incorrect, for example: trace.Error(err)
   
   It can be added. 


-- 
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]

Reply via email to