combineSpansets "combines" spansets. This isn't actually possible so it just choose the spanset that has the highest "Matched" number as it is hopefully more representative of the spanset
(existing *tempopb.SpanSet, incoming *tempopb.SpanSet)
| 296 | // choose the spanset that has the highest "Matched" number as it is hopefully |
| 297 | // more representative of the spanset |
| 298 | func combineSpansets(existing *tempopb.SpanSet, incoming *tempopb.SpanSet) { |
| 299 | if existing.Matched >= incoming.Matched { |
| 300 | return |
| 301 | } |
| 302 | |
| 303 | existing.Matched = incoming.Matched |
| 304 | existing.Attributes = incoming.Attributes |
| 305 | existing.Spans = incoming.Spans |
| 306 | } |
| 307 | |
| 308 | func spansetID(ss *tempopb.SpanSet) string { |
| 309 | id := "" |
no outgoing calls
no test coverage detected