Sha256: 723000ab309268f2bdfd37390aeb3d29f1e9360399f0df97654e3f11df92e9bd

Contents?: true

Size: 626 Bytes

Versions: 3

Compression:

Stored size: 626 Bytes

Contents

# frozen_string_literal: true

module Sentry
  class Configuration
    attr_reader :sidekiq

    add_post_initialization_callback do
      @sidekiq = Sentry::Sidekiq::Configuration.new
      @excluded_exceptions = @excluded_exceptions.concat(Sentry::Sidekiq::IGNORE_DEFAULT)
    end
  end

  module Sidekiq
    IGNORE_DEFAULT = ["Sidekiq::JobRetry::Skip"]

    class Configuration
      # Set this option to true if you want Sentry to only capture the last job
      # retry if it fails.
      attr_accessor :report_after_job_retries

      def initialize
        @report_after_job_retries = false
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sentry-sidekiq-5.22.1 lib/sentry/sidekiq/configuration.rb
sentry-sidekiq-5.22.0 lib/sentry/sidekiq/configuration.rb
sentry-sidekiq-5.21.0 lib/sentry/sidekiq/configuration.rb