Skip to content
This repository was archived by the owner on May 31, 2018. It is now read-only.

OrbotixInc/ExceptionHandler-gem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple class that is meant to be used in conjunction with rollbar-gem for catching exceptions. It handles logging exceptions into a single line (usefull for parsing in sumologic) and sending exception count metrics to influxdb.

Usage

To utilize this gem, ensure that you have both the rollbar and exceptionhandler gems in your Gemfile:

gem 'rollbar'
gem 'exceptionhandler', github: 'OrbotixInc/ExceptionHandler', branch: 'master'

Then you can simple configure the rollbar gem to use the ExceptionHandler class as for it's before_process. For a rails app this can be done in an initalizer, for other frameworks reference the rollbar-gem documentation.

require 'exceptionhandler'

Rollbar.configure do |config|
  config.before_process << ExceptionHandler.new
end

For sending metrics to influxdb via the graphite protocol, this gem requires the graphite_host and graphite_port environment variables to be set.

About

A ruby class to log exceptions in a log-friendly way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages