Answer:
From its source to its mouth.
..............................................................................
If you didn't find that helpful, which most of you should not, the longest river is the Nile which is 6,000 meters long and can get as small 500 meters, so i hoped that helped. :)