Sha256: 7c5a2fa7ccaa31d3d21c977d04c571cd5f3579b8ecff6919727d561947949477

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

require "delayed_job"
require "sentry-ruby"
require "sentry/integrable"
require "sentry/delayed_job/version"
require "sentry/delayed_job/plugin"

module Sentry
  module DelayedJob
    extend Sentry::Integrable

    register_integration name: "delayed_job", version: Sentry::DelayedJob::VERSION

    if defined?(::Rails::Railtie)
      class Railtie < ::Rails::Railtie
        config.after_initialize do
          next unless Sentry.initialized?

          Sentry.configuration.rails.skippable_job_adapters << "ActiveJob::QueueAdapters::DelayedJobAdapter"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sentry-delayed_job-4.3.1 lib/sentry-delayed_job.rb
sentry-delayed_job-4.3.0 lib/sentry-delayed_job.rb
sentry-delayed_job-4.2.1 lib/sentry-delayed_job.rb