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
18 19 20 |
# File 'lib/sentry/rails/active_job.rb', line 18 def already_supported_by_sentry_integration? Sentry.configuration.rails.skippable_job_adapters.include?(self.class.queue_adapter.class.to_s) end |
#perform_now ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/sentry/rails/active_job.rb', line 8 def perform_now if !Sentry.initialized? || already_supported_by_sentry_integration? super else SentryReporter.record(self) do super end end end |