Mindfulness (Sati in Pali) is a whole-hearted observation of the present moment with a quality of mind free of desire/aversion. It forms the basis for cultivating all the Awakening Factors.
Dhammavicaya, the factor of discrimination, is one of the 7 factors. IT is a lens through which we can meet our experience, and cultivate understanding & insight.