honeybadger-io / honeybadger-ruby

Ruby gem for reporting errors to honeybadger.io
https://docs.honeybadger.io/lib/ruby/
MIT License
250 stars 146 forks source link

feat: implement local contexts #541

Closed d4rky-pl closed 6 months ago

d4rky-pl commented 6 months ago

Fixes #247, this is my attempt at the local context problem. Please let me know if there are any further tests you'd like me to add to check if this implementation is solid enough to handle all the possible use cases (thread safety?)

d4rky-pl commented 6 months ago

I was trying to implement a thread safety specs but realized it doesn't make sense:

Please let me know if there's anything I can do to fast track releasing this feature. This would help a lot in being able to use tags efficiently without resorting to either manually clearing them or manually handling exceptions within a block.