If you don't tell him, and he finds out from someone else, it may be harder for him to look beyond the discretion in order to keep the relationship.

Breakdown of trust, coupled with breakdown of communication is a recipe that will end a relationship. If you want it to continue, I suggest telling and asking for forgiveness. It will be hard for him to do so, but if he values you, and the relationship he may find it is possible.