Sentry: track errors and exceptions [Python3]


raven-python supports to track errors and exceptions with Python.
This article shows how to use Sentry.

🐯 Installation

pip install raven --upgrade

😸 How to Use

from raven import Client

client = Client('___DSN___')

try:
1 / 0
except ZeroDivisionError:
client.captureException(sample_rate=0.5) # Send 50% of this event
from raven import Client

client = Client('___DSN___')
client.captureMessage('Something went fundamentally wrong')

🐝 References

🖥 Recommended VPS Service

VULTR provides high performance cloud compute environment for you. Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour). In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!