-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ref(starfish): Show 3 significant digits for queries per minute #54033
Conversation
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, but one question! Do you think these changes to baggage are worth it? It's a bit confusing, and all rates should always have the same number of significant digits anyway, so it actually might be good if we hard-code to 3 rather than accepting a parameter there! Thoughts?
I did this because I do agree hardcoding is probably the better approach though, so if you think the impact on the other views is fine, I can amend the PR! |
@AbhiPrasad as long as the change only affects the rate renderer, it should be good to amend! The only affected fields in the tables are |
Updated! |
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.
Sorry to keep annoying you with this, but I think there's an even better way because it'll both enforce the right number of significant digits and use the right locale-based number formatting
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.
🚢
PR reverted: dd75a2c |
…te (#54033)" This reverts commit 16c86c1. Co-authored-by: AbhiPrasad <[email protected]>
…#54100) This was previously done and merged in with #54033, but had to be reverted with dd75a2c because of [JAVASCRIPT-2NGX](https://sentry.sentry.io/issues/4367379265/). The fix for the Sentry issue was related to `static/app/views/performance/transactionSummary/transactionVitals/vitalCard.tsx`, which was blindly forwarding the echarts formatter args to `formatAbbreviatedNumber`. When we introduced a new precision arg to `formatAbbreviatedNumber`, the echarts arg was being used, which would lead to unexpected values being provided to the function. fixes JAVASCRIPT-2NGX fixes JAVASCRIPT-2NGW
formatAbbreviatedNumber
to set # of significant digitsUpdateUpdategetFieldRenderer
renderer baggage to use precision, which is what starfish spans table consumesgetFieldRenderer
rate renderer to use constant precision of 3 for sig digs.Before
After