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

Function trimForSelectAll

tempodb/encoding/vparquet4/block_traceql_test.go:1323–1332  ·  view source on GitHub ↗
(tr *Trace)

Source from the content-addressed store, hash-verified

1321}
1322
1323func trimForSelectAll(tr *Trace) {
1324 for i, rs := range tr.ResourceSpans {
1325 tr.ResourceSpans[i].Resource.Attrs = trimArrayAttrs(rs.Resource.Attrs)
1326 for j, ss := range rs.ScopeSpans {
1327 for k, s := range ss.Spans {
1328 tr.ResourceSpans[i].ScopeSpans[j].Spans[k].Attrs = trimArrayAttrs(s.Attrs)
1329 }
1330 }
1331 }
1332}
1333
1334func flattenForSelectAll(tr *Trace, dcm dedicatedColumnMapping) *traceql.Spanset {
1335 var traceAttrs []attrVal

Callers 1

Calls 1

trimArrayAttrsFunction · 0.70

Tested by

no test coverage detected