You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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
What do you want to ask?
想知道如何设置:

err = gerror.NewCode(gcode.CodeBusinessValidationFailed, "这是一个错误信息")
这种校验的错误,或者是业务代码的错误提示,不以error记录在jaeger中
The text was updated successfully, but these errors were encountered: