I assume what you are trying to do is show the length of the line as a label after you have created it with the edit widget. You cannot label features from a feature service,
You will need to create a second map service with the features in it, make them have no symbology add that to your map and it will then label them