Skip to content

Binding between errgo Masking system and rollbar Stack building system

Notifications You must be signed in to change notification settings

Scalingo/errgo-rollbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rollbar - Errgo binding v0.2.1

Rollbar Go client: https://github.com/stvp/rollbar Errgo: https://github.com/go-errgo/errgo

Errgo masking system

Errgo is based on a error masking system which gather information each time an error is masked and returned to the called.

From this stack of masked error, we can build the calling path of the error and get the precise origin of a given error.

Example

func A() error {
  return errgo.Mask(err)
}

func B() error {
  return errgo.Mask(A())
}

func main() {
  err := B()
  rollbar.ErrorWithStack(rollbar.ERR, err, errgorollbar.BuildStack(err))
  rollbar.Wait()
}

Then your are able to see on your rollbal dashboard that the correct stack trace has been sent.

Release a New Version

Bump new version number in:

  • CHANGELOG.md
  • README.md

Commit, tag and create a new release:

git add CHANGELOG.md README.md
git commit -m "Bump v0.2.1"
git tag v0.2.1
git push origin master
git push --tags
hub release create v0.2.1

About

Binding between errgo Masking system and rollbar Stack building system

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages