Sha256: f6a413afa01b035cc18668b0eb698bbc5f8edbcaef2e395bd8a8631fc1caf7da

Contents?: true

Size: 667 Bytes

Versions: 47

Compression:

Stored size: 667 Bytes

Contents

require "delayed_job"
require "sentry-ruby"
require "sentry/integrable"
require "sentry/delayed_job/configuration"
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? && defined?(::Sentry::Rails)

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

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
sentry-delayed_job-5.20.1 lib/sentry-delayed_job.rb
sentry-delayed_job-5.20.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.19.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.18.2 lib/sentry-delayed_job.rb
sentry-delayed_job-5.18.1 lib/sentry-delayed_job.rb
sentry-delayed_job-5.18.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.17.3 lib/sentry-delayed_job.rb
sentry-delayed_job-5.17.2 lib/sentry-delayed_job.rb
sentry-delayed_job-5.17.1 lib/sentry-delayed_job.rb
sentry-delayed_job-5.17.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.16.1 lib/sentry-delayed_job.rb
sentry-delayed_job-5.15.2 lib/sentry-delayed_job.rb
sentry-delayed_job-5.15.1 lib/sentry-delayed_job.rb
sentry-delayed_job-5.15.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.14.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.13.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.12.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.11.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.10.0 lib/sentry-delayed_job.rb
sentry-delayed_job-5.9.0 lib/sentry-delayed_job.rb