The role of shear in the transition from continuous shear thickening to discontinuous shear thickening