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-2.14.0 lib/rollbar/plugins/thread.rb
rollbar-2.13.3 lib/rollbar/plugins/thread.rb
rollbar-2.13.2 lib/rollbar/plugins/thread.rb
rollbar-2.13.1 lib/rollbar/plugins/thread.rb
rollbar-2.13.0 lib/rollbar/plugins/thread.rb
rollbar-2.12.0 lib/rollbar/plugins/thread.rb
rollbar-2.11.5 lib/rollbar/plugins/thread.rb
rollbar-2.11.4 lib/rollbar/plugins/thread.rb
rollbar-2.11.3 lib/rollbar/plugins/thread.rb
rollbar-2.11.2 lib/rollbar/plugins/thread.rb
rollbar-2.11.1 lib/rollbar/plugins/thread.rb
rollbar-2.11.0 lib/rollbar/plugins/thread.rb