fix: #2147 preserve sub-millisecond precision in trace waterfall timestamps#2158
Conversation
|
@nquandt-mt is attempting to deploy a commit to the HyperDX Team on Vercel. A member of the Team first needs to authorize it. |
|
|
<!-- claude-code-review --> PR Review✅ No critical issues found. Small, well-scoped fix with good test coverage (zero-sub-ms, fractional ms, max boundary, ordering). The Minor (non-blocking) observations:
|
8b9aa54 to
126f572
Compare
126f572 to
32b4fd1
Compare
|
After fighting with the Claude Code Review bot, I think this is in a good spot. I have no further changes at this time. |
|
@karl-power are you able to take a look at this? You have the most experience with trace waterfall atm |
karl-power
left a comment
There was a problem hiding this comment.
LGTM @nquandt
Can you fix the conflict?
…anosecond-timestamps # Conflicts: # packages/app/src/__tests__/utils.test.ts
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Review✅ No critical issues found. Minor observations (optional, not blocking):
Math verified: |
|
@karl-power all done and ready for a squash 👍 |
brandon-pereira
left a comment
There was a problem hiding this comment.
Thanks for the contribution! 🥳
fix: #2147
Summary
Move parseTimestampToMs to src/utils.ts and import it in DBTraceWaterfallChart. Uses TimestampNano to avoid truncation from new Date().getTime(), preventing alignment errors when two events fall within the same millisecond.
Screenshots or video
Before:

After:

How to test locally or on Vercel
References
#2147