Doesn't really matter if you tell him or not, if he does find out about it, the trust in your relationship is going to take a hit.
The only difference in telling him yourself is he may be more likely to forgive you if he hears about directly from you.