See measurements-while-drilling.