Add sentry sidekiq

This commit is contained in:
simon lehericey 2023-11-21 11:41:58 +01:00
parent 380cedc998
commit 137680879c
3 changed files with 6 additions and 0 deletions

View file

@ -84,6 +84,7 @@ gem 'sassc-rails' # Use SCSS for stylesheets
gem 'sentry-delayed_job'
gem 'sentry-rails'
gem 'sentry-ruby'
gem 'sentry-sidekiq'
gem 'sib-api-v3-sdk'
gem 'sidekiq'
gem 'skylight'

View file

@ -682,6 +682,9 @@ GEM
sentry-ruby (~> 5.9.0)
sentry-ruby (5.9.0)
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)
activesupport (>= 4.2.0)
sib-api-v3-sdk (7.4.0)
@ -921,6 +924,7 @@ DEPENDENCIES
sentry-delayed_job
sentry-rails
sentry-ruby
sentry-sidekiq
shoulda-matchers
sib-api-v3-sdk
sidekiq

View file

@ -3,6 +3,7 @@ class SidekiqAgainJob < ApplicationJob
queue_as :default
def perform(user)
Sentry.capture_message('this is a message from sidekiq')
UserMailer.new_account_warning(user).deliver_now
end
end