diff --git a/Gemfile b/Gemfile index 2bb109aa..f3207728 100644 --- a/Gemfile +++ b/Gemfile @@ -24,7 +24,8 @@ gem 'rack-cors' gem 'rails', '~> 6.1.0' gem 'redis' gem 'sass-rails' -gem 'sentry-raven' +gem 'sentry-rails' +gem 'sentry-ruby' gem 'uglifier' group :production do diff --git a/Gemfile.lock b/Gemfile.lock index 8327a3ba..20c081e7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -306,8 +306,11 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) - sentry-raven (3.1.2) - faraday (>= 1.0) + sentry-rails (5.4.1) + railties (>= 5.0) + sentry-ruby (~> 5.4.1) + sentry-ruby (5.4.1) + concurrent-ruby (~> 1.0, >= 1.0.2) simplecov (0.21.2) docile (~> 1.1) simplecov-html (~> 0.11) @@ -391,7 +394,8 @@ DEPENDENCIES rubocop-rails sass-rails selenium-webdriver - sentry-raven + sentry-rails + sentry-ruby simplecov simplecov-lcov sqlite3 diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb new file mode 100644 index 00000000..43aa902a --- /dev/null +++ b/config/initializers/sentry.rb @@ -0,0 +1,5 @@ +Sentry.init do |config| + return unless ENV.has_key?('SENTRY_DSN') + config.dsn = ENV.fetch('SENTRY_DSN') + config.breadcrumbs_logger = [:active_support_logger, :http_logger] +end