Add sentry sidekiq
This commit is contained in:
parent
380cedc998
commit
137680879c
3 changed files with 6 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -84,6 +84,7 @@ gem 'sassc-rails' # Use SCSS for stylesheets
|
||||||
gem 'sentry-delayed_job'
|
gem 'sentry-delayed_job'
|
||||||
gem 'sentry-rails'
|
gem 'sentry-rails'
|
||||||
gem 'sentry-ruby'
|
gem 'sentry-ruby'
|
||||||
|
gem 'sentry-sidekiq'
|
||||||
gem 'sib-api-v3-sdk'
|
gem 'sib-api-v3-sdk'
|
||||||
gem 'sidekiq'
|
gem 'sidekiq'
|
||||||
gem 'skylight'
|
gem 'skylight'
|
||||||
|
|
|
@ -682,6 +682,9 @@ GEM
|
||||||
sentry-ruby (~> 5.9.0)
|
sentry-ruby (~> 5.9.0)
|
||||||
sentry-ruby (5.9.0)
|
sentry-ruby (5.9.0)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
|
sentry-sidekiq (5.9.0)
|
||||||
|
sentry-ruby (~> 5.9.0)
|
||||||
|
sidekiq (>= 3.0)
|
||||||
shoulda-matchers (4.5.1)
|
shoulda-matchers (4.5.1)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
sib-api-v3-sdk (7.4.0)
|
sib-api-v3-sdk (7.4.0)
|
||||||
|
@ -921,6 +924,7 @@ DEPENDENCIES
|
||||||
sentry-delayed_job
|
sentry-delayed_job
|
||||||
sentry-rails
|
sentry-rails
|
||||||
sentry-ruby
|
sentry-ruby
|
||||||
|
sentry-sidekiq
|
||||||
shoulda-matchers
|
shoulda-matchers
|
||||||
sib-api-v3-sdk
|
sib-api-v3-sdk
|
||||||
sidekiq
|
sidekiq
|
||||||
|
|
|
@ -3,6 +3,7 @@ class SidekiqAgainJob < ApplicationJob
|
||||||
queue_as :default
|
queue_as :default
|
||||||
|
|
||||||
def perform(user)
|
def perform(user)
|
||||||
|
Sentry.capture_message('this is a message from sidekiq')
|
||||||
UserMailer.new_account_warning(user).deliver_now
|
UserMailer.new_account_warning(user).deliver_now
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue