Skip to content
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

fix: Preserve sign when formatting durations #25891

Merged
merged 1 commit into from
May 5, 2021
Merged

Conversation

dashed
Copy link
Member

@dashed dashed commented May 5, 2021

We're not preserving signs when formatting duration values. Negative duration values may be propagated by the SDK as in GoogleChrome/web-vitals#137 . While these values are invalid, knowing that duration values are negative would surface bugs sooner; and help us ensure duration values are not negative in the product.

In the future, we'll provide enhanced UI features to communicate that negative duration values are invalid.

Before

Screen Shot 2021-05-05 at 2 01 14 PM

After

Screen Shot 2021-05-05 at 2 01 07 PM

@dashed dashed requested a review from a team May 5, 2021 18:17
@dashed dashed self-assigned this May 5, 2021
@dashed dashed requested a review from a team May 5, 2021 18:39
@dashed dashed merged commit 6a5071a into master May 5, 2021
@dashed dashed deleted the preserve-duration-signs branch May 5, 2021 20:44
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants