-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support span in error status when http code >= 400, and add trace#Error in toolkit API #212
Conversation
Also, please update the CHANGES.md, thanks! |
1、Features:support manually set span error in the toolkit. 2、Bug Fixes:Fix not set span error when http status code >= 400
|
@alexwn Are you still working on this? |
|
… method is deleted 2、change gin excepted data /notFound isError=true
No, there isn't anything to ask. I am just checking whether the CI fix has any blocks. |
Yes, I saw it. I just changed the code and submitted it |
Still failing. You may still need to make CI runnable locally, which is much easier to see the error and fix. |
If that case is using http component as well, then it is affected by your codes. |
entry span is not affected by my code, exist span is effected by my code. I just change two span's isError=true, exist span passed, entry span failed. So I should only change the exit span' isError=true and leave the entry span original? |
If you want to make changes to another plugin(gin), then you could make them aligned. It depends on you. Ideally, all HTTP RPC relative plugins should follow your new proposal. |
@alexwn This change seems to impact other plugin tests as well, please fix them. |
|
1、add logic when http status code >= 400, set span isError is true by span.Error method
2、add new method trace.Error for user set san isError to true by self