Risk management

What does credit risk most directly measure for a lender?