-
-
Notifications
You must be signed in to change notification settings - Fork 260
replay: add sensitive content widget to default masking #2989
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
base: main
Are you sure you want to change the base?
Conversation
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- add sensitive content widget to default masking ([#2989](https://github.com/getsentry/sentry-dart/pull/2989)) If none of the above apply, you can opt out of this check by adding |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2989 +/- ##
===========================================
- Coverage 87.63% 63.09% -24.54%
===========================================
Files 278 4 -274
Lines 9176 168 -9008
===========================================
- Hits 8041 106 -7935
+ Misses 1135 62 -1073 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -41,6 +41,20 @@ class SentryPrivacyOptions { | |||
mask: false, | |||
name: 'SentryUnmask', | |||
)); | |||
// TODO: check for Flutter version and make this testable |
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.
static const String? version = bool.hasEnvironment('FLUTTER_VERSION') |
3.33.0-0.2.pre
or higher.
Ideally, you also make a check for bool.hasEnvironment('FLUTTER_VERSION')
so that it tree shakes better. Calling a property on dynamic basically disables tree shaking for that property on any class. And the FLUTTER_VERSION
dart define was introduced just one major Flutter version before this, which should already improve tree shaking quite a lot for most Flutter versions.
📜 Description
Masks the
SensitiveContent
widget ootb for replayTBD: check how we can add backwards compat
💡 Motivation and Context
Closes #2987
💚 How did you test it?
📝 Checklist
sendDefaultPii
is enabled🔮 Next steps