-
-
Notifications
You must be signed in to change notification settings - Fork 455
fix(breadcrumbs): Deduplicate battery breadcrumbs #4561
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: rz/perf/less-ipc
Are you sure you want to change the base?
Conversation
Performance metrics 🚀
|
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.
LGTM!
return Objects.hash(roundedLevel, charging); | ||
} | ||
|
||
private boolean isSimilarLevel(final @Nullable Float level1, final @Nullable Float level2) { |
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.
IMHO I'd rather store the battery level as an integer value directly, saves us some extra logic. I guess it's fine to have the breadcrumb report an integer value too.
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.
yeah sounds good, I also was hesitating with this logic tbh. Will adjust 👍
📜 Description
💡 Motivation and Context
Closes getsentry/sentry-react-native#4668
💚 How did you test it?
Manually + automated
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps