Sha256: 1beaf0c18ba4f76358cb537e3c578dbce886d400357e0b9b8c19be4206478986

Contents?: true

Size: 276 Bytes

Versions: 11

Compression:

Stored size: 276 Bytes

Contents

Rollbar.plugins.define('thread') do
  module Rollbar
    module ThreadPlugin
      def initialize(*args)
        self[:_rollbar_notifier] ||= Rollbar.notifier.scope
        super
      end
    end
  end

  execute do
    Thread.send(:prepend, Rollbar::ThreadPlugin)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rollbar-3.6.0 lib/rollbar/plugins/thread.rb
rollbar-3.5.2 lib/rollbar/plugins/thread.rb
rollbar-3.5.1 lib/rollbar/plugins/thread.rb
rollbar-3.5.0 lib/rollbar/plugins/thread.rb
rollbar-3.4.2 lib/rollbar/plugins/thread.rb
rollbar-3.4.1 lib/rollbar/plugins/thread.rb
rollbar-3.4.0 lib/rollbar/plugins/thread.rb
rollbar-3.3.3 lib/rollbar/plugins/thread.rb
rollbar-3.3.2 lib/rollbar/plugins/thread.rb
rollbar-3.3.1 lib/rollbar/plugins/thread.rb
rollbar-3.3.0 lib/rollbar/plugins/thread.rb