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

Returns:

  • (Boolean)


14
15
16
# File 'lib/sentry/rails/active_job.rb', line 14

def already_supported_by_sentry_integration?
  Sentry.configuration.rails.skippable_job_adapters.include?(self.class.queue_adapter.class.to_s)
end

#perform_nowObject



4
5
6
7
8
9
10
11
12
# File 'lib/sentry/rails/active_job.rb', line 4

def perform_now
  if !Sentry.initialized? || already_supported_by_sentry_integration?
    super
  else
    SentryReporter.record(self) do
      super
    end
  end
end