alexwn opened a new issue, #12882:
URL: https://github.com/apache/skywalking/issues/12882

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache SkyWalking Component
   
   Go Agent (apache/skywalking-go)
   
   ### What happened
   
   The HTTP request returns a status code of 4xx or 5xx, but the span is not 
marked as an error in the Skywalking UI
   
   ### What you expected to happen
   
   1. When the HTTP request returns a status code of 4xx or 5xx, span is marked 
as an error
   2. The Skywalking Go toolkit provides a method to manually set whether the 
span is incorrect, for example: trace.Error(err)
   
   ### How to reproduce
   
   Use the native HTTP server of Go to process requests. When the HTTP status 
returned by the request is 4xx or 5xx, span will not be marked as an error
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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