class Bugsnag::Middleware::ActiveJob
Public Class Methods
new(bugsnag)
click to toggle source
# File lib/bugsnag/middleware/active_job.rb, line 3 def initialize(bugsnag) @bugsnag = bugsnag end
Public Instance Methods
call(report)
click to toggle source
# File lib/bugsnag/middleware/active_job.rb, line 7 def call(report) data = report.request_data[:active_job] if data report.add_tab(:active_job, data) report.automatic_context = "#{data[:job_name]}@#{data[:queue]}" end @bugsnag.call(report) end