Sha256: 4fb0a2805836d7af6fd7654a536f346459284208326325395719ac176e478792

Contents?: true

Size: 379 Bytes

Versions: 52

Compression:

Stored size: 379 Bytes

Contents

Rollbar.plugins.define('thread') do
  execute do
    Thread.class_eval do
      def initialize_with_rollbar(*args, &block)
        self[:_rollbar_notifier] ||= Rollbar.notifier.scope
        initialize_without_rollbar(*args, &block)
      end

      alias_method :initialize_without_rollbar, :initialize
      alias_method :initialize, :initialize_with_rollbar
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
rollbar-3.1.1 lib/rollbar/plugins/thread.rb
rollbar-3.1.0 lib/rollbar/plugins/thread.rb
rollbar-3.0.1 lib/rollbar/plugins/thread.rb
rollbar-3.0.0 lib/rollbar/plugins/thread.rb
rollbar-2.27.1 lib/rollbar/plugins/thread.rb
rollbar-2.27.0 lib/rollbar/plugins/thread.rb
rollbar-2.26.1 lib/rollbar/plugins/thread.rb
rollbar-2.26.0 lib/rollbar/plugins/thread.rb
rollbar-2.25.1 lib/rollbar/plugins/thread.rb
rollbar-2.25.0 lib/rollbar/plugins/thread.rb
rollbar-2.24.0 lib/rollbar/plugins/thread.rb
rollbar-2.23.2 lib/rollbar/plugins/thread.rb
rollbar-2.23.1 lib/rollbar/plugins/thread.rb
rollbar-2.23.0 lib/rollbar/plugins/thread.rb
rollbar-2.22.1 lib/rollbar/plugins/thread.rb
rollbar-2.22.0 lib/rollbar/plugins/thread.rb
rollbar-2.21.0 lib/rollbar/plugins/thread.rb
rollbar-2.20.2 lib/rollbar/plugins/thread.rb
rollbar-2.20.1 lib/rollbar/plugins/thread.rb
rollbar-2.20.0 lib/rollbar/plugins/thread.rb