In this section of scripture, the context tells us some very important things! First, this kind of thankfulness comes from being filled with the Spirit!
Paul’s life circumstances were miserable (humanly speaking)! Paul was in prison, beaten, shipwrecked, stoned, mobs of angry people ran him out of towns, and even a poisonous snake bit him—but he glories in what he has in Christ! What do you glory in?