Despite commonly being called a vein, the dark line along the back of a shrimp is actually its
digestive tract.
It can contain digested food as well as tiny amounts of sand or grit.
That doesn’t necessarily mean the shrimp is unsafe to eat if the line is left intact, but it can sometimes affect the eating experience.
Why Do People Remove It?