You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
387 B
23 lines
387 B
package model |
|
|
|
import ( |
|
"strconv" |
|
) |
|
|
|
// SpanListRef . |
|
type SpanListRef struct { |
|
TraceID uint64 |
|
SpanID uint64 |
|
IsError bool |
|
Duration int64 |
|
} |
|
|
|
// TraceIDStr hex format traceid |
|
func (s SpanListRef) TraceIDStr() string { |
|
return strconv.FormatUint(s.TraceID, 16) |
|
} |
|
|
|
// SpanIDStr hex format traceid |
|
func (s SpanListRef) SpanIDStr() string { |
|
return strconv.FormatUint(s.SpanID, 16) |
|
}
|
|
|