Welcome to the inofficial Bash SDK for Sentry!
git clone https://github.com/m8522s/sentry-bash.git
mv sentry-bash/sentry_sdk.sh /usr/lib64/
rm -rf sentry-bash/Load the Sentry library and initialize with your personal key and the project number.
source /usr/lib64/sentry_sdk.sh
sentry_init 83105fca2e2e2351b1 450841014661Generate a message that will show up in Sentry.
sentry_event "Oops, something went wrong!" "error"Add breadcrumbs about Git hash, message, and author.
sentry_breadcrumb "$(git rev-parse HEAD)" "git hash"
sentry_breadcrumb "$(git show -s --format=%s)" "git message"
sentry_breadcrumb "$(git show -s --format='%an' $(git rev-parse HEAD))" "git author"