Repository navigation
feat: Sync scope from the webview to the Rust SDK - #45
Merged
Merged
Conversation
timfish
force-pushed
the
tim/scope-sync
branch
from
October 13, 2026 14:19
2701cd9 to
e4f4ece
Compare
timfish
force-pushed
the
tim/scope-sync
branch
from
October 19, 2026 13:24
e4f4ece to
bb476e9
Compare
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.
A new
ScopeToRustintegration in the default browser options sends user, tags, extra and contexts to a newscopecommand whenever they change, so Rust panics and messages include what the app set withSentry.setUser,setTag,setExtraandsetContextin the webview. The integration sends only changed keys once per task, sendsnullfor removed keys, and sends anulluser aftersetUser(null), which clears the user in Rust; breadcrumbs still go only through thebreadcrumbcommand. The command writes toHub::main()and not the current thread hub, because other threads copy the main hub scope when they first use Sentry; threads that already have their own hub do not see later changes, which is a limit of sentry-rust. New e2e tests cover sync and async commands andsetUser(null), and the native crash test is skipped because sentry-minidump 0.49.3 does not send the app scope to the crash reporter yet.