The onset of trapping of electrons born inside a highly relativistic, 3D beam-driven plasma wake is investigated. Trapping occurs in the transition regions of a Li plasma confined by He gas. Li plasma electrons support the wake, and higher ionization potential He atoms are ionized as the beam is focused by Li ions and can be trapped. As the wake amplitude is increased, the onset of trapping is observed. Some electrons gain up to 7.6 GeV in a 30.5 cm plasma. The experimentally inferred trapping threshold is at a wake amplitude of 36 GV/m, in good agreement with an analytical model and PIC simulations.