I usually install one like the one shown on the left in this picture.
The cost of doubling the fittings and riser pipe is negligible in comparison to the cost of digging the hole...
The only time I wouldn't is if the cleanout was installed just outside of the foundation and the line had a tee with a cleanout right inside...
I usually install one of these whenever we do a spot repair anywhere in the line unless the access is already provided outside and the distance is short.