Sha256: fd9d4fb9d9fc22e3503d0eece81c0a987b298ce08b34483fb7dcc85bc5a01fee

Contents?: true

Size: 594 Bytes

Versions: 7

Compression:

Stored size: 594 Bytes

Contents

require "resque"
require "sentry-ruby"
require "sentry/integrable"
require "sentry/resque/configuration"
require "sentry/resque/version"
require "sentry/resque"

module Sentry
  module Resque
    extend Sentry::Integrable

    register_integration name: "resque", version: Sentry::Resque::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::ResqueAdapter"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sentry-resque-4.6.5 lib/sentry-resque.rb
sentry-resque-4.6.4 lib/sentry-resque.rb
sentry-resque-4.6.3 lib/sentry-resque.rb
sentry-resque-4.6.2 lib/sentry-resque.rb
sentry-resque-4.6.1 lib/sentry-resque.rb
sentry-resque-4.6.0 lib/sentry-resque.rb
sentry-resque-4.6.0.pre.beta.0 lib/sentry-resque.rb