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

Method AddRaw

tempodb/encoding/vparquet5/create.go:190–203  ·  view source on GitHub ↗
(id []byte, row parquet.Row, start, end uint32)

Source from the content-addressed store, hash-verified

188}
189
190func (b *streamingBlock) AddRaw(id []byte, row parquet.Row, start, end uint32) error {
191 _, err := b.pw.WriteRows([]parquet.Row{row})
192 if err != nil {
193 return err
194 }
195
196 b.index.Add(id)
197 b.bloom.Add(id)
198 b.meta.ObjectAdded(start, end)
199 b.currentBufferedTraces++
200 b.currentBufferedBytes += estimateMarshalledSizeFromParquetRow(row)
201
202 return nil
203}
204
205func (b *streamingBlock) EstimatedBufferedBytes() int {
206 return b.currentBufferedBytes

Callers 2

CompactMethod · 0.45
CreateBlockFunction · 0.45

Calls 3

ObjectAddedMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected