Sha256: 7896b83f47df97adc82500644236a64773c31ba00c4a11938b2928b4cf092deb
Contents?: true
Size: 457 Bytes
Versions: 24
Compression:
Stored size: 457 Bytes
Contents
module Bugsnag::Middleware ## # Attaches Sidekiq job information to an error report class Sidekiq def initialize(bugsnag) @bugsnag = bugsnag end def call(report) sidekiq = report.request_data[:sidekiq] if sidekiq report.add_tab(:sidekiq, sidekiq) report.context ||= "#{sidekiq[:msg]['wrapped'] || sidekiq[:msg]['class']}@#{sidekiq[:msg]['queue']}" end @bugsnag.call(report) end end end
Version data entries
24 entries across 24 versions & 1 rubygems