The shift measurement isn't a length, it is an angle. The position of a star on the sky is specified with two angles - just like spherical polar coordinates. If a star "moves" with respect to this coordinate system, defined by very distant quasars that are assumed to be fixed, then these angles change and the apparent motion of the star on the sky is an angular displacement.
In terms of how a parallax is measured, the cartoon shown in all textbooks is vastly simplified. A more realistic view is that the position of a star is measured several times over the course of years. The annual parallax causes the star to trace out an ellipse on the sky against the fixed coordinate system. Fitting the parameters of the ellipse gives the parallax angle because the shape and size of the ellipse depends on the star's position and parallax.
Reality is more complicated again though, because stars also have "proper motion" within the Galaxy with respect to the Solar System. This means their positions in the sky drift with time. This motion must also be combined into the model using a "5-parameter astrometric fit" - the two angles specifying position at some epoch, the parallax, and two proper motion rates in the two angular directions.
An exaggerated example is shown below, illustrating the combined parallax and proper motion displacement on the sky of the nearby star Proxima Centauri. The other stars in the picture are much more distant and approximate the fixed coordinate reference frame. The proper motion is the big, linear drift in position from year to year. The component of motion due to parallax are the the little "up-ticks" in the track that repeat every year.
