Repository navigation
feat: add session_changed_func backend hook - #2200
Merged
Merged
Conversation
Notify the backend, with the options lock held, whenever the current session starts, syncs its user via sentry_set_user() or ends. Backends that cannot run code at crash time (the Nintendo Switch backend, whose crash report is a region the OS snapshots) need the session mirrored ahead of a crash, the same way flush_scope_func mirrors the scope. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2200 +/- ##
==========================================
+ Coverage 75.39% 75.57% +0.18%
==========================================
Files 103 103
Lines 28208 28220 +12
Branches 5168 5170 +2
==========================================
+ Hits 21268 21328 +60
+ Misses 5600 5540 -60
- Partials 1340 1352 +12 🚀 New features to boost your workflow:
|
sentry__capture_event flips `session->init` to false once the session rides along with an event; a backend mirroring the session must learn about that, otherwise a later crash report would announce the same session as new a second time. Co-Authored-By: Claude Fable 5.1 <[email protected]>
session_changed_func backend hook
JoshuaMoelans
marked this pull request as ready for review
October 15, 2026 08:53
session_changed_func backend hooksession_changed_func backend hook
|
jpnurmi
approved these changes
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Notify the backend, with the options lock held, whenever the current session starts, syncs its user via sentry_set_user() or ends. Backends that cannot run code at crash time (the Nintendo Switch backend, whose crash report is a region the OS snapshots) need the session mirrored ahead of a crash, the same way flush_scope_func mirrors the scope.
Related to https://github.com/getsentry/sentry-switch/pull/180