lib/honeybadger/context_manager.rb in honeybadger-3.2.0 vs lib/honeybadger/context_manager.rb in honeybadger-3.3.0

- old
+ new

@@ -1,8 +1,9 @@ require 'honeybadger/conversions' module Honeybadger + # @api private class ContextManager include Conversions def self.current Thread.current[:__hb_context_manager] ||= new @@ -15,10 +16,11 @@ def clear! _initialize end - # Internal accessors + # Internal helpers + def set_context(hash) @mutex.synchronize do @context ||= {} @context.update(Context(hash))