Skip to content
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

Please tell me how to display errors through gcode or not display errors. Using gerror.newcode() is currently an error in jaeger. Some information is verification information and does not need to be displayed as errors in jaeger. #4175

Closed
sharpleafage opened this issue Mar 1, 2025 · 1 comment

Comments

@sharpleafage
Copy link

What do you want to ask?

想知道如何设置:
err = gerror.NewCode(gcode.CodeBusinessValidationFailed, "这是一个错误信息")
这种校验的错误,或者是业务代码的错误提示,不以error记录在jaeger中
Image

Image

Image

@Issues-translate-bot Issues-translate-bot changed the title 请教一下,链路追踪如何通过gcode显示或不显示error,使用gerror.newcode()目前在jaeger中都是error,有些信息是校验信息,不需要在jaeger中显示为error Please tell me how to display errors through gcode or not display errors. Using gerror.newcode() is currently an error in jaeger. Some information is verification information and does not need to be displayed as errors in jaeger. Mar 1, 2025
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


What do you want to ask?

Want to know how to set it up:
err = gerror.NewCode(gcode.CodeBusinessValidationFailed, "This is an error message")
This verification error, or error prompt in business code, is not recorded in jaeger as an error
Image

Image

Image

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants