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

Method getTraceID

tempodb/encoding/vparquet3/block_iterator.go:62–70  ·  view source on GitHub ↗
(r parquet.Row)

Source from the content-addressed store, hash-verified

60var _ RawIterator = (*rawIterator)(nil)
61
62func (i *rawIterator) getTraceID(r parquet.Row) common.ID {
63 for _, v := range r {
64 if v.Column() == i.traceIDIndex {
65 // Important - clone to get a detached copy that lives outside the pool.
66 return v.Clone().ByteArray()
67 }
68 }
69 return nil
70}
71
72func (i *rawIterator) Next(context.Context) (common.ID, parquet.Row, error) {
73 rows := []parquet.Row{i.pool.Get()}

Callers 1

NextMethod · 0.95

Calls 1

CloneMethod · 0.80

Tested by

no test coverage detected