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

Why is the "span startTime" that I queried from es and JaegerUI query different? #1399

Closed
code98 opened this issue Mar 4, 2019 · 7 comments

Comments

@code98
Copy link

code98 commented Mar 4, 2019

Why is the "span startTime" that I queried from es and JaegerUI query different?

Same traceId
Same SpanId
Same Elasticsearch

Data in the ES
image

JaegerUi, use this interface "/api/traces"

image

@yurishkuro
Copy link
Member

Possibly due to clock skew adjustment. Try with ?raw=true parameter

@code98
Copy link
Author

code98 commented Mar 5, 2019

Possibly due to clock skew adjustment. Try with ?raw=true parameter

Not a time zone issue, because it is a few milliseconds

@yurishkuro
Copy link
Member

Clock skew adjustment is not related to time zone, it's the small differences in system clocks on different servers due to clock drift. Jaeger query service, by default, attempts to correct for these differences. By adding ?raw=true parameter to the query you instruct it not to apply this adjustment.

@code98
Copy link
Author

code98 commented Mar 5, 2019

Clock skew adjustment is not related to time zone, it's the small differences in system clocks on different servers due to clock drift. Jaeger query service, by default, attempts to correct for these differences. By adding ?raw=true parameter to the query you instruct it not to apply this adjustment.

Hello, I still don't understand what it means here. I want to query the span data in Elasticsearch. If I don't make clock adjustments, is startTime accurate? Are all spans linear based on startTime? thank you!

@yurishkuro
Copy link
Member

for example: /api/traces/665010a93ef2ee1f?raw=true&prettyPrint=true

@code98
Copy link
Author

code98 commented Mar 5, 2019

Clock skew adjustment is not related to time zone, it's the small differences in system clocks on different servers due to clock drift. Jaeger query service, by default, attempts to correct for these differences. By adding ?raw=true parameter to the query you instruct it not to apply this adjustment.

The span data I queried from Elasticsearch can be used directly on my business system without making adjustments.

@yurishkuro
Copy link
Member

do you still have a question?

@code98 code98 closed this as completed Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants