warden fix trace (#300)

pull/302/head
Felix Hao 5 years ago committed by GitHub
parent 43902c3d19
commit a83992e6dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkg/net/rpc/warden/server.go

@ -111,6 +111,7 @@ func (s *Server) handle() grpc.UnaryServerInterceptor {
var t trace.Trace
cmd := nmd.MD{}
if gmd, ok := metadata.FromIncomingContext(ctx); ok {
t, _ = trace.Extract(trace.GRPCFormat, gmd)
for key, vals := range gmd {
if nmd.IsIncomingKey(key) {
cmd[key] = vals[0]

Loading…
Cancel
Save