-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[ui] Spans are shifted to the left (their relative time is negative) #968
Comments
Is the attached json the input or output? Ex is this what was posted to the
zipkin server or what was returned by the query? Reason I ask is that the
query response includes clock skew adjustment.
|
This is what was returned from the query server
|
Couple things can help make it easier for people to pick up the sort of
issues you are raising (me or otherwise).
You'll notice Yuri, Yuki and I usually write a failing test or otherwise.
It usually isn't a UI issue, rather a data one.
I guess you believe this is a JavaScript problem or something in the
mustache code, as you tagged this as a UI bug.
Can annotate the image with an arrow or something pointing to where you
think something can be. Please also pare down test data to only a few
spans, and mention specifically the span data (ex timestamp on which span)
you think the UI is misunderstanding.
That makes issues like these easier to validate. If this isn't a UI issue
(rather something around the api, it might need to go to another repo.
The more you can clarify, the easier it is for others to help you.
|
When clock skew is present, a child comes before the parent. This isn't something the UI should do anything about, as root cause is preventable. Basically, instead we should correct the instrumentation. I hunted through the attached trace, it looks like RPC methods like http client or server calls do not log any core annotations. This means clock skew correction will not work. Since the spans that shifted are in fact RPC spans, the simplest way to correct this issue is to log RPC annotations. spring-cloud-sleuth used to do this, at least some of the code still does (ex I cc'd you on this topic the day before you opened this :P #963 Also, of interest is #939 which I opened a couple weeks ago, but no-one has given feedback on. |
ps probably also want to fix your json formatter to not coerse longs to floating points. ex. formatting like this, while valid json, is unnecessarily confusing way to read an epoch timestamp. "timestamp": 1.455283179037e+15, |
Image:
JSON:
spans_bug.txt
The text was updated successfully, but these errors were encountered: