Sending Sentry Events from Bash
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.
Company
Sentry
Date published
Nov. 28, 2017
Author(s)
Armin Ronacher
Word count
475
Hacker News points
None found.
Language
English