Skip to content

Instantly share code, notes, and snippets.

@nateberkopec
Created October 22, 2014 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nateberkopec/233da4fd0c2bb50d97a5 to your computer and use it in GitHub Desktop.
Save nateberkopec/233da4fd0c2bb50d97a5 to your computer and use it in GitHub Desktop.
Add Sentry to your Gemfile:
gem "sentry-raven", :require => 'raven', :git => "https://github.com/getsentry/raven-ruby.git"
Add a config/initializers/raven.rb containing:
Raven.configure do |config|
config.dsn = 'https://ee561c4bd99f45c6bb2a442b1af04677:34f0a36cb8f54ca7beb35aaed895725f@app.getsentry.com/31964'
end
That's it! Raven automatically installs an error handling hook to pipe all uncaught exceptions to Sentry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment