Can you please give us a functionality to show measurements as labels for line features?
This functionality is now available with hosted feature services as they now include area and length as attributes by default. See the following idea for more details:
Calculate geometry in AGOL to find the area or length of a polygon or line
Retrieving data ...