Repository navigation
feat(nav3): [Part 4] Add a lazily encoding argument source for kotlinx properties - #6751
Draft
0xadam-brown wants to merge 1 commit into
Draft
0xadam-brown wants to merge 1 commit into
0xadam-brown wants to merge 1 commit into
Conversation
Contributor
|
Contributor
PR risk: mediumFor commit Main concerns: data sent to Sentry, host performance, reach. This label is a hint for reviewers, not an approval. |
This was referenced Nov 24, 2026
📲 Install BuildsAndroid
|
This branch has not been deployed
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.
PR Stack (Nav3 Serial Name Mappers)
Former parts 1–3 merged into
mainas #6697, #6698, and #6699; preparatory refactors merged in #6749. Two other former parts merged separately as #6713 and #6714.📜 Description
PR adds
KotlinxArgumentSource, theArgumentSource(see Part 1) that the built-inSerialNameAndPropertiesmapper (Part 5) uses to turn a back stack entry's kotlinx.serialization properties into Sentry arguments.ArgumentSanitizerwrites the source to its sink, the source encodes the entry's properties straight into that sink viaKotlinxPropertiesEncoder(Part 3). The properties are walked once, and they spend the same per-update argument budget as every other entry's arguments.Map, so a host app mapper that wraps a built-in mapper can read and filter its arguments. Read as a map, it encodes once on demand and caches the result.ArgumentDropReason.ENCODING_FAILED({"dropped_by_sentry": "encoding_failed"}).KotlinxUnencodableArgumentsstands in for every entry's arguments when the app's kotlinx.serialization version can't run the encoder.PR also extends the argument-conversion diagram in
ArgumentConversion.ktwith the built-in mapper side.Nothing uses the source yet; Part 5 wires it into
SerialNameAndProperties. It was split out of that PR to keep it reviewable.💡 Motivation and Context
addresses: JAVA-787 (link)
💚 How did you test it?
Nav3 release unit tests, Spotless, Detekt, and ABI checks pass.
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Continue with Part 5: Add the built-in SerialNameAndProperties mapper.
#skip-changelog