Integrate 3D solution along an axis with dolfinx

In 3D problems based in the discussion here there doesn’t seem to be another way yet, unless I totally misunderstand. Still, if anyone has more input I am also in the answer to this.