It occurs to me that the big problem here is that it is difficult to inspect the tank for corrosion. If you could monitor the corrosion and the remaining tank wall thickness, you would have a good basis to make a decision to either keep or scrap the tank.
In the past few years, a couple of pieces of kit that might be useful have actually become really affordable. One would be a bore scope that you could use to see inside the tank and visually inspect it.
When I was a young engineer, the first bore scope I bought for us to use at GM was a couple of thousand dollars. You can buy one now that will plug into your smart phone for about $35. You'd need a 3/8 hole to insert the camera into the tank. I think most tanks would have that available.
The second item is an ultrasonic wall thickness gauge. I was paying almost $1000 a unit for those a few years back to check pipe wall thickness on underground pipes. For giggles I bought a couple for about $80 from China and they worked fine. Due to the size of the probe (about 1/4") you'd get some "averaging" of minimum wall thickness, but it would be easy to check the top of a tank and the bottom of a tank. If the bottom is measuring 60% of the top...you know you have big problems.
Final idea for the truely ********* would be to hydrotest the tank. If you fill it with water and then apply a tank of compressed gasses (like nitrogen for example), you can test to a pressure above the operating pressure. The advantage of using water as a test medium is, water isn't compressible, so if the tank ruptures, it (in theory) isn't going to blow up....it's just going to leak water everywhere. Probably a good "outside" job. I think that's how they retest oxygen cylinders every so many years. If anyone does this, please do not put the entire 2000 PSI from the nitrogen tank on the water. Keep it to something reasonable ...1.5 to 2.0 times the compressors cut off pressure maybe?
Just a couple of ideas. I can't imagine any of us are going to throw away a compressor tank (or the whole unit) after 10 years, if it is still working fine....but an inspection might be a good practical alternative.
Phil