-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Use Zipkin annotations if the timestamp is zero #1341
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
if cs != nil { | ||
timestamp = cs.Timestamp | ||
cr := td.findAnnotation(zSpan, zipkincore.CLIENT_RECV) | ||
if cr != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this perhaps also check for duration == 0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Geoffrey Beausire <[email protected]>
Signed-off-by: Geoffrey Beausire <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1341 +/- ##
======================================
Coverage 100% 100%
======================================
Files 162 162
Lines 7308 7326 +18
======================================
+ Hits 7308 7326 +18
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
@geobeau thanks for the PR? Was there a related ticket, or just the PR? |
No, I encountered this issue so I fixed it directly. Should I have opened one? Thanks to both of you 👍 |
no, PR is fine, thanks. |
Which problem is this PR solving?
When the span.Timestamp is 0, jaeger write the span with the timestamp to zero even when we have more informations in the annotations.
Short description of the changes
If the timestamp is zero, we determine if the span is a client or a server and extract timestamp and information from there