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

Function trimForSelectAll

tempodb/encoding/vparquet5/block_traceql_test.go:1514–1523  ·  view source on GitHub ↗
(tr *Trace)

Source from the content-addressed store, hash-verified

1512}
1513
1514func trimForSelectAll(tr *Trace) {
1515 for i, rs := range tr.ResourceSpans {
1516 tr.ResourceSpans[i].Resource.Attrs = trimArrayAttrs(rs.Resource.Attrs)
1517 for j, ss := range rs.ScopeSpans {
1518 for k, s := range ss.Spans {
1519 tr.ResourceSpans[i].ScopeSpans[j].Spans[k].Attrs = trimArrayAttrs(s.Attrs)
1520 }
1521 }
1522 }
1523}
1524
1525func flattenForSelectAll(tr *Trace, dcm dedicatedColumnMapping) *traceql.Spanset {
1526 var traceAttrs []attrVal

Callers 2

Calls 1

trimArrayAttrsFunction · 0.70

Tested by

no test coverage detected