Replies: 2 comments 1 reply
-
Hey @TheodoreG! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together! To render the Span data by nanoseconds in Jaeger, you need to modify the Here is the modified code: func (d domainToJaegerTransformer) transformSpan(span *model.Span) *jaeger.Span {
tags := d.convertKeyValuesToTags(span.Tags)
logs := d.convertLogs(span.Logs)
refs := d.convertSpanRefs(span.References)
jaegerSpan := &jaeger.Span{
TraceIdLow: int64(span.TraceID.Low),
TraceIdHigh: int64(span.TraceID.High),
SpanId: int64(span.SpanID),
ParentSpanId: int64(span.ParentSpanID()),
OperationName: span.OperationName,
References: refs,
Flags: int32(span.Flags),
StartTime: span.StartTime.UnixNano(), // Use nanoseconds
Duration: span.Duration.Nanoseconds(), // Use nanoseconds
Tags: tags,
Logs: logs,
}
return jaegerSpan
} In this modification:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Jaeger internally (i.e. in the database) only keeps microsecond precision. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, I pass some traces data with timestamp in nanoseconds to Jaeger server and got like this
It seems like the server render the bar by converting nanoseconds to microseconds.
Is there any way to show those bars by nanoseconds?
Thanks very much!
Beta Was this translation helpful? Give feedback.
All reactions