Jaeger持续时间测量

huangapple go评论53阅读模式
英文:

Jaeger duration measurement

问题

I guess it's milliseconds. Can anyone confirm?

I've looked over the internet and tried to find what duration in Jaeger represents but with no success.

英文:

Can't find anywhere in Jaeger docs or GitHub what duration represents as a measurement unit. I guess it's milliseconds. Can anyone confirm?

I've looked over the internet and tried to find what duration in Jaeger represents but with no success.

答案1

得分: 0

"Late answer I know but if you like me came here looking for this answer.
Duration is stored in microseconds.
From Jeager Source code

type Span struct {
        TraceID       TraceID     `json:"traceID"`
        SpanID        SpanID      `json:"spanID"`
        ParentSpanID  SpanID      `json:"parentSpanID,omitempty"` // deprecated
        Flags         uint32      `json:"flags,omitempty"`
        OperationName string      `json:"operationName"`
        References    []Reference `json:"references"`
        StartTime     uint64      `json:"startTime"` // microseconds since Unix epoch
        Duration      uint64      `json:"duration"`  // microseconds
        Tags          []KeyValue  `json:"tags"`
        Logs          []Log       `json:"logs"`
        ProcessID     ProcessID   `json:"processID,omitempty"`
        Process       *Process    `json:"process,omitempty"`
        Warnings      []string    `json:"warnings"`
}
英文:

Late answer I know but if you like me came here looking for this answer.

Duration is stored in microseconds.

From Jeager Source code

type Span struct {
        TraceID       TraceID     `json:"traceID"`
        SpanID        SpanID      `json:"spanID"`
        ParentSpanID  SpanID      `json:"parentSpanID,omitempty"` // deprecated
        Flags         uint32      `json:"flags,omitempty"`
        OperationName string      `json:"operationName"`
        References    []Reference `json:"references"`
        StartTime     uint64      `json:"startTime"` // microseconds since Unix epoch
        Duration      uint64      `json:"duration"`  // microseconds
        Tags          []KeyValue  `json:"tags"`
        Logs          []Log       `json:"logs"`
        ProcessID     ProcessID   `json:"processID,omitempty"`
        Process       *Process    `json:"process,omitempty"`
        Warnings      []string    `json:"warnings"`
}

huangapple
  • 本文由 发表于 2023年5月11日 17:28:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76226118.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定