Skip to content

Commit

Permalink
Fix NoMethodError / Make session_tracking check consistent (#2269)
Browse files Browse the repository at this point in the history
* Make session_tracking check consistent

* changelog entry
  • Loading branch information
knapo committed Mar 14, 2024
1 parent b05afd9 commit 8cfc110
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Unreleased

- Fix NoMethodError / Make session_tracking check consistent ([#2269](https://github.com/getsentry/sentry-ruby/pull/2269))

## 5.17.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion sentry-ruby/lib/sentry/hub.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def end_session
end

def with_session_tracking(&block)
return yield unless configuration.auto_session_tracking
return yield unless configuration.session_tracking?

start_session
yield
Expand Down

0 comments on commit 8cfc110

Please sign in to comment.