/plushcap/analysis/sentry/sentry-sentry-bash

Sending Sentry Events from Bash

What's this blog post about?

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

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.