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

Function newSpanCollector2

tempodb/encoding/vparquet5/block_traceql_fetch.go:1226–1239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1224}
1225
1226func newSpanCollector2() *spanCollector2 {
1227 c := &spanCollector2{}
1228
1229 // We always return this result with the same span.
1230 c.atRes.AppendOtherValue(otherEntrySpanKey, &c.at)
1231
1232 // We always return this spanset with the 1 span.
1233 c.spansetBuffer = &traceql.Spanset{
1234 Spans: make([]traceql.Span, 1),
1235 }
1236 c.spansetBuffer.Spans[0] = &c.at
1237
1238 return c
1239}
1240
1241func (c *spanCollector2) Reset(rowNumber parquetquery.RowNumber) {
1242 switch {

Callers 1

createFunction · 0.85

Calls 1

AppendOtherValueMethod · 0.80

Tested by

no test coverage detected