in plugins/inputs/zipkin/codec/thrift/gen-go/zipkincore/zipkinCore.go [1480:1549]
func (p *Span) Equals(other *Span) bool {
if p == other {
return true
} else if p == nil || other == nil {
return false
}
if p.TraceID != other.TraceID {
return false
}
if p.Name != other.Name {
return false
}
if p.ID != other.ID {
return false
}
if p.ParentID != other.ParentID {
if p.ParentID == nil || other.ParentID == nil {
return false
}
if (*p.ParentID) != (*other.ParentID) {
return false
}
}
if len(p.Annotations) != len(other.Annotations) {
return false
}
for i, _tgt := range p.Annotations {
_src2 := other.Annotations[i]
if !_tgt.Equals(_src2) {
return false
}
}
if len(p.BinaryAnnotations) != len(other.BinaryAnnotations) {
return false
}
for i, _tgt := range p.BinaryAnnotations {
_src3 := other.BinaryAnnotations[i]
if !_tgt.Equals(_src3) {
return false
}
}
if p.Debug != other.Debug {
return false
}
if p.Timestamp != other.Timestamp {
if p.Timestamp == nil || other.Timestamp == nil {
return false
}
if (*p.Timestamp) != (*other.Timestamp) {
return false
}
}
if p.Duration != other.Duration {
if p.Duration == nil || other.Duration == nil {
return false
}
if (*p.Duration) != (*other.Duration) {
return false
}
}
if p.TraceIDHigh != other.TraceIDHigh {
if p.TraceIDHigh == nil || other.TraceIDHigh == nil {
return false
}
if (*p.TraceIDHigh) != (*other.TraceIDHigh) {
return false
}
}
return true
}