Thanos wrecks characters like Silver Surfer for fun...Sentry is way below SS, so there's no way in hell he's beating Thanos. Well, except if PIS is involved. Really, Thanos' saving grace here is that Sentry doesn't really abuse his hax all that much in combat. First of all I would like to state I am using the properties in this video purely for the purposes of education about the Marvel Comics character the Sentry. Even if that fails, Thanos seals Sentry and calls it a day. Sentry is an open-source platform for workflow productivity, aggregating errors from across the stack in real time. In energy projecton, Sentry showed enough power to destroy planets, but it is not enough to take out Thanos.
500K developers use Sentry to get the code-level context they need to resolve issues at every stage of the app lifecycle; Thanos: Highly available Prometheus setup with long term storage capabilities. 2 years ago
On the other hand, I doubt that Thanos can prevent Void from regenerating. Sentry can honestly transmute Thanos or devour his soul.
If the Golden Guardian was more prone to it, I'd say inconclusive as the two have definite ways to take each other out.