We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
默认开启TraceHandler后,每条http请求都会有日志发送到Jaeger,但是我自己打印的日志并不会被发送,我想问是否有一些配置可以实现,我查阅了文档后没发现相关方法。
package logic import ( "context" "trace/internal/svc" "trace/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type TraceLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewTraceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TraceLogic { return &TraceLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *TraceLogic) Trace(req *types.Request) (resp *types.Response, err error) { resp = &types.Response{ Message: "Hello " + req.Name, } // 我想把这条日志也一并发送到Jaeger l.Logger.Info("Hello") return }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
默认开启TraceHandler后,每条http请求都会有日志发送到Jaeger,但是我自己打印的日志并不会被发送,我想问是否有一些配置可以实现,我查阅了文档后没发现相关方法。
The text was updated successfully, but these errors were encountered: