Sha256: 1de08ffb9a46d01831805ab4f7e6739f48d98863c150f572f8a68838ab02d13d

Contents?: true

Size: 381 Bytes

Versions: 61

Compression:

Stored size: 381 Bytes

Contents

require "sidekiq"
require "sentry-sidekiq"

Sentry.init do |config|
  config.breadcrumbs_logger = [:sentry_logger]
  # replace it with your sentry dsn
  config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
end

class ErrorWorker
  include Sidekiq::Worker

  sidekiq_options retry: 0

  def perform
    1 / 0
  end
end

ErrorWorker.perform_async

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
sentry-sidekiq-5.9.0 example/error_worker.rb
sentry-sidekiq-5.8.0 example/error_worker.rb
sentry-sidekiq-5.7.0 example/error_worker.rb
sentry-sidekiq-5.6.0 example/error_worker.rb
sentry-sidekiq-5.5.0 example/error_worker.rb
sentry-sidekiq-5.4.2 example/error_worker.rb
sentry-sidekiq-5.4.1 example/error_worker.rb
sentry-sidekiq-5.4.0 example/error_worker.rb
sentry-sidekiq-5.3.1 example/error_worker.rb
sentry-sidekiq-5.3.0 example/error_worker.rb
sentry-sidekiq-5.2.1 example/error_worker.rb
sentry-sidekiq-5.2.0 example/error_worker.rb
sentry-sidekiq-5.1.1 example/error_worker.rb
sentry-sidekiq-5.1.0 example/error_worker.rb
sentry-sidekiq-5.0.2 example/error_worker.rb
sentry-sidekiq-5.0.1 example/error_worker.rb
sentry-sidekiq-5.0.0 example/error_worker.rb
sentry-sidekiq-4.9.2 example/error_worker.rb
sentry-sidekiq-4.9.1 example/error_worker.rb
sentry-sidekiq-4.9.0 example/error_worker.rb