-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(relay): add view hierarchy scrubbing #4452
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # Cargo.lock # relay-pii/Cargo.toml # relay-server/src/services/processor/attachment.rs # tests/integration/test_attachments.py
# Conflicts: # CHANGELOG.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
let mut deserializer_inner = Deserializer::from_slice(payload); | ||
let deserializer = crate::transform::Deserializer::new(&mut deserializer_inner, visitor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, to make it super explicit which deserializer is which:
let mut deserializer_inner = Deserializer::from_slice(payload); | |
let deserializer = crate::transform::Deserializer::new(&mut deserializer_inner, visitor); | |
let mut deserializer_inner = serde_json::Deserializer::from_slice(payload); | |
let deserializer = transform::Deserializer::new(&mut deserializer_inner, visitor); |
@@ -49,6 +49,7 @@ use serde::de; | |||
/// } | |||
/// } | |||
/// ``` | |||
#[allow(missing_docs)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add some docs instead?
scrub_view_hierarchy(item, config) | ||
} else if item.attachment_type() == Some(&AttachmentType::Minidump) { | ||
scrub_minidump(item, config) | ||
} else if has_simple_attachment_selector(config) && item.ty() == &ItemType::Attachment { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
} else if has_simple_attachment_selector(config) && item.ty() == &ItemType::Attachment { | |
} else if item.ty() == &ItemType::Attachment && has_simple_attachment_selector(config) { |
This PR adds explicit ViewHierarchy scrubbing to the attachment scrubbing process.
Most of the logic is taken from the current recording scrubbing because both are JSON files.