You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Visual Clock Drift Correction in Trace Waterfall #132136
Today, clock drift in distributed traces leads to trace waterfalls where parent/child spans are visually misaligned, making it very hard to reason about the actual trace. Here's an example:
While the http.server subtree is a child of the http.client request, the clock skew makes it appear 2 minutes earlier than the client request.
SDK-side, we cannot fully correct this drift because we need to trust some local clock. Especially in browsers, but generally in client-side devices and apps, clock drift is really common, for example due to NTP corrections or users manually setting a time. Relay shifts timestamps for massively skewed telemetry (over an hour), but the finer skews can't be post-detected either.
Solution Brainstorm
In the trace waterfall, we can detect out of sync spans pretty easily, for example by checking for clock drift between http.client and http.sever span siblings. Once detected, we can shift the sub-tree so that the trace appears aligned again. Importantly, the UI must explain that we did this and why, and it should be toggle-able.
Activity
linear-code commentedon Nov 23, 2026
ENG-9115