Sha256: 1a58a3cd45a404a205c0335565555cc0b9b8aeae28417af9f2e2676519740a80

Contents?: true

Size: 412 Bytes

Versions: 5

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

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

5 entries across 5 versions & 1 rubygems

Version Path
sentry-sidekiq-5.22.3 example/error_worker.rb
sentry-sidekiq-5.22.2 example/error_worker.rb
sentry-sidekiq-5.22.1 example/error_worker.rb
sentry-sidekiq-5.22.0 example/error_worker.rb
sentry-sidekiq-5.21.0 example/error_worker.rb