Skip to content

Commit

Permalink
Fix uninitialized race condition in Redis integration (#2057)
Browse files Browse the repository at this point in the history
Fixes #2054
  • Loading branch information
sl0thentr0py authored Jun 21, 2023
1 parent 75aa456 commit 6196cec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
### Bug Fixes

- Support Rails 7.1's show exception check [#2049](https://github.com/getsentry/sentry-ruby/pull/2049)
- Fix uninitialzed race condition in Redis integration [#2057](https://github.com/getsentry/sentry-ruby/pull/2057)
- Fixes [#2054](https://github.com/getsentry/sentry-ruby/issues/2054)
- Ignore low-level Puma exceptions by default [#2055](https://github.com/getsentry/sentry-ruby/pull/2055)


## 5.9.0

### Features
Expand Down
1 change: 1 addition & 0 deletions sentry-ruby/lib/sentry/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def instrument
attr_reader :commands, :host, :port, :db

def record_breadcrumb
return unless Sentry.initialized?
return unless Sentry.configuration.breadcrumbs_logger.include?(LOGGER_NAME)

Sentry.add_breadcrumb(
Expand Down

0 comments on commit 6196cec

Please sign in to comment.