You’ve mentioned using a spring and/or using a shock. Keep in mind these two components serve two separate purposes.
A spring is a device that allows compression but provides a force to counteract that compression… that is, you can squeeze a spring but it’ll fight that squeeze and return to its original length once you stop squeezing.
A shock is a device that limits the speed at which compression occurs… if you squeeze a shock slowly you’ll have no problem, but if you try to squeeze it very quickly, it will resist (but not prevent) the squeezing motion.
Both springs and shocks are used as suspension, usually in combination… you’d never see a shock by itself, though, as it doesn’t do any work to restore it’s position once squeezed.
As for your tensioner, I’d recommend against using any kind of shock. As others have said, you need maximum tension in your chain and a shock will allow some slack to develop.