Skip to content

Commit 8cfc110

Browse files
authored
Fix NoMethodError / Make session_tracking check consistent (#2269)
* Make session_tracking check consistent * changelog entry
1 parent b05afd9 commit 8cfc110

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Unreleased
2+
3+
- Fix NoMethodError / Make session_tracking check consistent ([#2269](https://github.com/getsentry/sentry-ruby/pull/2269))
4+
15
## 5.17.0
26

37
### Features

sentry-ruby/lib/sentry/hub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def end_session
245245
end
246246

247247
def with_session_tracking(&block)
248-
return yield unless configuration.auto_session_tracking
248+
return yield unless configuration.session_tracking?
249249

250250
start_session
251251
yield

0 commit comments

Comments
 (0)