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

Function spansetID

pkg/traceql/combine.go:308–319  ·  view source on GitHub ↗
(ss *tempopb.SpanSet)

Source from the content-addressed store, hash-verified

306}
307
308func spansetID(ss *tempopb.SpanSet) string {
309 id := ""
310
311 for _, s := range ss.Attributes {
312 // any attributes that start with "by" are considered to be part of the spanset identity
313 if strings.HasPrefix(s.Key, "by") {
314 id += s.Key + s.Value.String()
315 }
316 }
317
318 return id
319}
320
321type QueryRangeCombiner struct {
322 req *tempopb.QueryRangeRequest

Callers 1

combineSearchResultsFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected