Content Deep Dive
Sending Sentry Events from Bash
Blog post from Sentry
Post Details
Company
Date Published
Author
Armin Ronacher
Word Count
475
Language
English
Hacker News Points
-
Source URL
Summary
The sentry-cli command line client can now send events to Sentry, making automatic error reporting from bash scripts possible. To do this, users need a working sentry-cli installation and must configure it with their DSN for events. With the -m parameter and a message for the event, users can start sending basic events. Additionally, they can attach breadcrumbs to events by providing logfiles or other relevant information. By adding one line at the start of bash scripts, users can enable error handling and receive tracebacks and output as breadcrumbs after a failure in a script.