lib/honeybadger/plugins/sidekiq.rb in honeybadger-4.2.2 vs lib/honeybadger/plugins/sidekiq.rb in honeybadger-4.3.0
- old
+ new
@@ -33,10 +33,13 @@
config[:'sidekiq.attempt_threshold'].to_i
end
return if retry_opt && retry_count < max_retries
opts = {parameters: params}
- opts[:component] = job['wrapped'.freeze] || job['class'.freeze] if config[:'sidekiq.use_component']
+ if config[:'sidekiq.use_component']
+ opts[:component] = job['wrapped'.freeze] || job['class'.freeze]
+ opts[:action] = 'perform' if opts[:component]
+ end
Honeybadger.notify(ex, opts)
}
end
end
end