diff --git a/Gemfile b/Gemfile index 2e5dc7b..68cc884 100644 --- a/Gemfile +++ b/Gemfile @@ -82,6 +82,8 @@ gem 'font-awesome-rails', '~> 4.4' #gem 'sprockets', '>= 3.0.0' #gem 'sprockets-es6' +gem "sentry-raven" #, :github => "getsentry/raven-ruby" + group :development do gem 'capistrano' gem 'capistrano-rails' diff --git a/Gemfile.lock b/Gemfile.lock index fc51885..a1bd611 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -335,6 +335,8 @@ GEM sdoc (0.4.1) json (~> 1.7, >= 1.7.7) rdoc (~> 4.0) + sentry-raven (0.15.2) + faraday (>= 0.7.6) sidekiq (4.0.1) concurrent-ruby (~> 1.0) connection_pool (~> 2.2, >= 2.2.0) @@ -441,6 +443,7 @@ DEPENDENCIES rspec-sidekiq sass-rails (~> 5.0) sdoc (~> 0.4.0) + sentry-raven sidekiq (~> 4.0, >= 4.0.1) sidekiq-failures (~> 0.4.5) sidekiq-limit_fetch (~> 3.0, >= 3.0.1) diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb new file mode 100644 index 0000000..2276ab9 --- /dev/null +++ b/config/initializers/sentry.rb @@ -0,0 +1,5 @@ +Raven.configure do |config| + config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s) + config.dsn = 'https://0b765acccb4c4285ae7a6f31d255a1e5:acc40fe583ed4cada414cf054b5c9eb1@app.getsentry.com/59314' + config.environments = ['staging', 'production', 'development'] +end