Repository navigation
Rust panic reports carry the same os, webos and hardware contexts as the fault fallback - #646
Merged
Merged
Conversation
…the fault fallback
panic_sentry_body now attaches the contexts through attach_os_context and
attach_hardware_context, the same two functions sentry_body uses, so the closed
native::{OS,WEBOS,HARDWARE}_FIELDS vocabulary is the only thing a panic report
adds. The body is built on the next launch from the crash log, never inside the
panic hook. The consent preview for the panic fallback shows the same
placeholders as the fault preview; PRIVACY.md names the new fields.
POLICY_VERSION stays 4: no new category of data, only fields already disclosed
for the fault fallback.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
What
Rust PANIC events sent to Sentry now carry the same
os/webos/hardwarecontexts (includinghardware.probe,rtkmem,install) the C-fault fallback report carries, so a firmware-specific panic can be told apart in Sentry's Contexts UI.panic_sentry_bodycallssentry::attach_os_contextandsentry::attach_hardware_context, the same two functionssentry_bodyuses. No parallel allowlist: the closednative::{OS,WEBOS,HARDWARE}_FIELDSvocabulary (nowpub(super)) is the only thing added, and the test grades against it.panic_sentry_bodyhas one production caller,recover_pending's queue step, which builds the body on the next launch from the crash log. The hook (app/boot.rs::install_panic_logger) only appends the log record and is untouched.POLICY_VERSIONstays 4: no new category of data, only fields already disclosed for the fault fallback (owner-approved, not a consent scope expansion).Verification
a_panic_body_carries_the_same_os_webos_and_hardware_contexts_as_a_faultfails with the two attach calls removed (panic body lacks contexts.os) and passes with them;the_panic_preview_declares_the_contexts_as_placeholderscovers the preview.make checkgreen on the committed tree (plx_telemetry: 284 passed; 0 failed),cargo +nightly check --lib --no-default-featuresfinished, ARMmakeexit 0.NOT verified
Closing keyword: none apply (open #289 is about native crash frames, unrelated).
🤖 Generated with Claude Code