elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.81k stars 8.2k forks source link

[field formatters] Human readable duration format shows zero for non-zero numbers #176112

Closed mattkime closed 1 month ago

mattkime commented 8 months ago

The human readable duration formatter fails for nanoseconds. Milliseconds is the smallest unit human readable supports which means nanosecond values are often rounded down to 0.00.

1234 nanoseconds would be shown as 0.001234 milliseconds

1234 nanoseconds becomes 0.00 milliseconds. More decimals can be displayed - 0.001234 milliseconds - but micro or nanoseconds would be preferred.

1 microsecond could have the same problem.

Our code relies on Moment js which seems to be the limiting factor. Its no longer maintained. A requirement for the replacement is representing nanoseconds - a brief glimpse reveals that few support this.

Split from - https://github.com/elastic/kibana/issues/176112

elasticmachine commented 8 months ago

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

jughosta commented 8 months ago

Linking to

kertal commented 1 month ago

Closing this because it's not planned to be resolved in the foreseeable future. It will be tracked in our Icebox and will be re-opened if our priorities change. Feel free to re-open if you think it should be melted sooner.