Brink of Disaster says:
Enchant creature or land.
When enchanted permanent becomes tapped, destroy it.
If you enchant something like Shrine of Burning Rage, and it's owner goes to tap and sacrifice it, would Brink of Disaster trigger before the sacrifice, or is the cost for the Shrine paid all at once?