Module: Sentry::Rails::ActiveJobExtensions
- Defined in:
- lib/sentry/rails/active_job.rb
Defined Under Namespace
Classes: SentryReporter
Instance Method Summary collapse
Instance Method Details
#already_supported_by_sentry_integration? ⇒ Boolean
16 17 18 |
# File 'lib/sentry/rails/active_job.rb', line 16 def already_supported_by_sentry_integration? Sentry.configuration.rails.skippable_job_adapters.include?(self.class.queue_adapter.class.to_s) end |
#perform_now ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/sentry/rails/active_job.rb', line 6 def perform_now if !Sentry.initialized? || already_supported_by_sentry_integration? super else SentryReporter.record(self) do super end end end |