LuoWeiJun
LuoWeiJun
#### Description (what this PR does / why we need it): 修复启用链路追逐后log中间件使用logfilter后,打印的请求日志中缺失trace.id值,如下 ``` INFO ts=2022-12-08T15:46:40+08:00 caller=log/log.go:30 trace.id= kind=server component=grpc operation=/video.basics.v1.notification.NotificationSrv/GetNotification args=webmaster_id:1595665043859443712 limit:20 code=0 reason= stack= latency=0.000850499 ``` #### Which issue(s)...
#### What happened: 启用链路追踪,日志中间件传入filterlog时,log日志中缺失trace_id值 ``` logger := log.With(log.NewStdLogger(os.Stdout), "ts", log.DefaultTimestamp, "caller", log.DefaultCaller, "trace.id", tracing.TraceID() ) ``` #### What you expected to happen: `INFO ts=2022-12-08T15:09:38+08:00 caller=tracing.go:64 trace.id=d8da228646556a2d47c73e519ba2c5f5 kind=client component=grpc operation=/video.basics.v1.notification.NotificationSrv/GetNotification args=webmaster_id:1595665043859443712...
gs核心框架引用了这个类型,但是现有代码中并未定义此类型  @lvan100