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

Method AddRaw

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

Source from the content-addressed store, hash-verified

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