MCPcopy
hub / github.com/grafana/tempo / combineSpansets

Function combineSpansets

pkg/traceql/combine.go:298–306  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

296// choose the spanset that has the highest "Matched" number as it is hopefully
297// more representative of the spanset
298func 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
308func spansetID(ss *tempopb.SpanSet) string {
309 id := ""

Callers 1

combineSearchResultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected