In Rails, all uncaught exceptions will be automatically reported.
We support Rails 4 and newer.
Install the SDK via Rubygems by adding it to your Gemfile
:
gem "sentry-ruby"
gem "sentry-rails"
Create the file config/initializers/sentry.rb
and configure the DSN, and any other settings you need:
Sentry.init do |config|
config.dsn = 'YOUR_DSN_HERE'
config.breadcrumbs_logger = [:active_support_logger, :http_logger]
end