Sha256: 0d5ee3ab7bfa501fe2bb8775815f87fbbd6f8f8113efc924ae333c087ea9167b
Contents?: true
Size: 781 Bytes
Versions: 3
Compression:
Stored size: 781 Bytes
Contents
module Honeybadger module Integrations module Sidekiq class Middleware def call(worker, msg, queue) Honeybadger.context.clear! yield end end end end Dependency.register do requirement { defined?(::Sidekiq) } injection do ::Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Integrations::Sidekiq::Middleware end end end end Dependency.register do requirement { defined?(::Sidekiq::VERSION) && ::Sidekiq::VERSION > '3' } injection do ::Sidekiq.configure_server do |config| config.error_handlers << Proc.new {|ex,context| Honeybadger.notify_or_ignore(ex, :parameters => context) } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems