Sha256: 30f3c725f4f52102ba2a2c4ffddd21526de64446c343f835c01e0291bf4b31eb
Contents?: true
Size: 426 Bytes
Versions: 10
Compression:
Stored size: 426 Bytes
Contents
module Bugsnag::Middleware class Sidekiq def initialize(bugsnag) @bugsnag = bugsnag end def call(notification) sidekiq = notification.request_data[:sidekiq] if sidekiq notification.add_tab(:sidekiq, sidekiq) notification.context ||= "#{sidekiq[:msg]['wrapped'] || sidekiq[:msg]['class']}@#{sidekiq[:msg]['queue']}" end @bugsnag.call(notification) end end end
Version data entries
10 entries across 10 versions & 1 rubygems