Skip to content

Commit

Permalink
Replace gem sentry-raven with sentry-ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalie committed Aug 24, 2023
1 parent 4a38c7a commit dc6e06b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gem 'puma'
gem 'sinatra', '~> 2.0.3'
gem 'rake', '~> 12.3.3'

gem 'sentry-raven'
gem 'sentry-ruby'

gem 'activesupport', '~> 4.1.11'

Expand Down
9 changes: 3 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ GEM
connection_pool (2.2.1)
diff-lcs (1.5.0)
docile (1.4.0)
faraday (0.15.0)
multipart-post (>= 1.2, < 3)
foreman (0.41.0)
thor (>= 0.13.6)
hashr (2.0.1)
Expand All @@ -48,7 +46,6 @@ GEM
metriks-librato_metrics (1.0.6)
metriks (>= 0.9.9.6)
minitest (5.11.3)
multipart-post (2.0.0)
mustermann (1.0.3)
nio4r (2.5.8)
parallel (1.23.0)
Expand Down Expand Up @@ -105,8 +102,8 @@ GEM
rubocop-rspec (2.10.0)
rubocop (~> 1.19)
ruby-progressbar (1.13.0)
sentry-raven (2.7.3)
faraday (>= 0.7.6, < 1.0)
sentry-ruby (5.10.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
sidekiq (4.0.2)
concurrent-ruby (~> 1.0)
connection_pool (~> 2.2, >= 2.2.0)
Expand Down Expand Up @@ -158,7 +155,7 @@ DEPENDENCIES
rubocop-performance
rubocop-rake
rubocop-rspec
sentry-raven
sentry-ruby
sidekiq (~> 4.0.0)
simplecov
simplecov-console
Expand Down
2 changes: 1 addition & 1 deletion config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ require 'travis/listener'

Travis::Listener.setup

use Raven::Rack if Travis.config.sentry.dsn
use Sentry::Rack::CaptureExceptions if Travis.config.sentry.dsn
run Travis::Listener::App
5 changes: 3 additions & 2 deletions lib/travis/listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ class Config < Travis::Config
class << self
def setup
if Travis.config.sentry.dsn
require 'raven'
::Raven.configure do |config|
require 'sentry-ruby'

::Sentry.init do |config|
config.dsn = Travis.config.sentry.dsn
config.excluded_exceptions = %w[Sinatra::NotFound]
end
Expand Down
2 changes: 1 addition & 1 deletion lib/travis/listener/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def event_details
rescue StandardError => e
error("Error logging payload: #{e.message}")
error("Payload causing error: #{decoded_payload}")
Raven.capture_exception(e)
Sentry.capture_exception(e)
{}
end

Expand Down

0 comments on commit dc6e06b

Please sign in to comment.