Перейти к содержимому

How to automate your database snapshots from Sentry

Guepard HQ

0:00 / 0:00

How to automate your database snapshots from Sentry

50 просмотров · 2 нед. назад
Guepard HQ
127 подписчиков
50 просмотров · 2 нед. назад
Learn how to automatically snapshot your database the moment an error hits, using a GFS commit hook triggered by Sentry. No more risky live debugging or spinning up a separate environment: just check out the exact database state at the time of the error and investigate safely. Repository: https://github.com/jess-gprd/sentry-g... GFS documentation link: https://gfs.guepard.run/docs GFS repository: https://github.com/guepard-corp/gfs Sentry: https://sentry.io/welcome/ Sentry Python docs: https://docs.sentry.io/platforms/python/ 0:00 Introduction 0:53 Server and Sentry Setup 3:04 Triggering and Verifying a Test Error 3:56 Creating the GFS Commit Hook 5:19 Testing the Hook and First Commit 6:11 Limitation: Error Unrelated to Database 6:34 Adding a Database Connected Endpoint 7:23 Triggering the Database Error 7:56 Simulating Data Loss 8:23 Restoring the Snapshot via GFS Checkout 9:01 Wrap-up and Future Improvements