Module: Checkend::Integrations::ActiveJob

Defined in:
lib/checkend/integrations/active_job.rb

Overview

ActiveJob integration for capturing job errors.

Works with any ActiveJob backend including Solid Queue, Sidekiq, etc. For Sidekiq, the Sidekiq integration is preferred as it provides more detailed context.

Examples:

Manual installation

# config/initializers/checkend.rb
require 'checkend/integrations/active_job'
Checkend::Integrations::ActiveJob.install!

With Rails (automatic via Railtie)

# No additional configuration needed

Defined Under Namespace

Modules: Extension

Constant Summary collapse

SKIP_ADAPTERS =

Adapters that have their own error handling (use those instead)

%w[
  sidekiq
  resque
].freeze

Class Method Summary collapse

Class Method Details

.active_job_available? ⇒ Boolean

Check if ActiveJob is available

Returns:

  • (Boolean)


39
40
41
# File 'lib/checkend/integrations/active_job.rb', line 39

def active_job_available?
  defined?(::ActiveJob::Base)
end

.install! ⇒ void

This method returns an undefined value.

Install the ActiveJob extension



30
31
32
33
34
# File 'lib/checkend/integrations/active_job.rb', line 30

def install!
  return unless active_job_available?

  ::ActiveJob::Base.include(Extension)
end