Skip to content

m8522s/sentry-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Inofficial Sentry SDK for Bash

Welcome to the inofficial Bash SDK for Sentry!

Getting Started

Installation

git clone https://github.com/m8522s/sentry-bash.git
mv sentry-bash/sentry_sdk.sh /usr/lib64/
rm -rf sentry-bash/

Basic Configuration

Load the Sentry library and initialize with your personal key and the project number.

source /usr/lib64/sentry_sdk.sh
sentry_init 83105fca2e2e2351b1 450841014661

Quick Usage Example

Generate 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"

About

Inofficial Sentry SDK for Bash

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages