The Lebesgue integral is a fantastic definition. It looks like a small change but it is profound. While Lebesgue in his thesis looked at probability spaces only where Ω is part of Euclidean space, the set-up works for any probability space.