// setIncomingMD sets the key-value pairs in the incoming metadata.
// Empty values are ignored.
mdIncoming, ok := metadata.FromIncomingContext(ctx)
if !ok {
mdIncoming = metadata.MD{}
}
if v != "" {
mdIncoming.Set(k, v)
}
}
}