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

[ui] Spans are shifted to the left (their relative time is negative) #968

Closed
marcingrzejszczak opened this issue Feb 12, 2016 · 5 comments
Closed
Labels

Comments

@marcingrzejszczak
Copy link

Image:
spans_bug

JSON:
spans_bug.txt

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Feb 13, 2016 via email

@marcingrzejszczak
Copy link
Author

marcingrzejszczak commented Feb 13, 2016 via email

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Feb 13, 2016 via email

@codefromthecrypt
Copy link
Member

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 ZipkinSpanListener).

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.

@codefromthecrypt
Copy link
Member

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants