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-4.8.2 lib/sentry-delayed_job.rb
sentry-delayed_job-4.8.1 lib/sentry-delayed_job.rb
sentry-delayed_job-4.8.0 lib/sentry-delayed_job.rb
sentry-delayed_job-4.7.3 lib/sentry-delayed_job.rb
sentry-delayed_job-4.7.2 lib/sentry-delayed_job.rb
sentry-delayed_job-4.7.1 lib/sentry-delayed_job.rb
sentry-delayed_job-4.7.0 lib/sentry-delayed_job.rb