Skip to content

chore(android): Remove manual context clearing on scope clear - #868

Merged
limbonaut merged 1 commit into
mainfrom
chore/drop-android-scope-clear-workaround
Aug 13, 2026
Merged

chore(android): Remove manual context clearing on scope clear#868
limbonaut merged 1 commit into
mainfrom
chore/drop-android-scope-clear-workaround

Conversation

@limbonaut

Copy link
Copy Markdown
Collaborator

sentry-java's Scope.clear() used to leave contexts in place, so the Android layer removed each context key by hand after calling it. That was fixed upstream in getsentry/sentry-java#5902 and released in 8.53.0, which this project already pins, so the workaround can go.

sentry-java 8.53.0 clears contexts in Scope.clear(), so the manual
removeContexts loop is no longer needed.
@limbonaut limbonaut changed the title chore(android): Drop Scope.clear() contexts workaround chore(android): Remove manual context clearing on scope clear Aug 13, 2026
@limbonaut
limbonaut merged commit aa7cc64 into main Aug 13, 2026
92 checks passed
@limbonaut
limbonaut deleted the chore/drop-android-scope-clear-workaround branch August 13, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants