Skip to content

Commit

Permalink
Disable sidekiq-scheduler-sentry integration & old deprecation subscr…
Browse files Browse the repository at this point in the history
…iber
  • Loading branch information
NuckChorris committed Oct 27, 2024
1 parent 20a3196 commit 92a6de7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions config/initializers/sentry-ruby.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

Sentry.init do |config|
config.enabled_patches += [:sidekiq_scheduler]
config.release = Rails.root.join('.version').read.strip if Rails.root.join('.version').exist?
config.traces_sample_rate = 1.0
config.profiles_sample_rate = 1.0
Expand All @@ -14,10 +13,3 @@
event if duration > 25.seconds
end
end

ActiveSupport::Deprecation.behavior = %i[stderr notify]
ActiveSupport::Notifications.subscribe('deprecation.rails') do |_, _, _, _, payload|
Sentry.capture_message(payload[:message],
level: 'warning',
backtrace: payload[:callstack].map(&:to_s))
end

0 comments on commit 92a6de7

Please sign in to comment.