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

Method Add

tempodb/encoding/vparquet4/create.go:173–187  ·  view source on GitHub ↗
(tr *Trace, start, end uint32)

Source from the content-addressed store, hash-verified

171}
172
173func (b *streamingBlock) Add(tr *Trace, start, end uint32) error {
174 _, err := b.pw.Write([]*Trace{tr})
175 if err != nil {
176 return err
177 }
178 id := tr.TraceID
179
180 b.index.Add(id)
181 b.bloom.Add(id)
182 b.meta.ObjectAdded(start, end)
183 b.currentBufferedTraces++
184 b.currentBufferedBytes += estimateMarshalledSizeFromTrace(tr)
185
186 return nil
187}
188
189func (b *streamingBlock) AddRaw(id []byte, row parquet.Row, start, end uint32) error {
190 _, err := b.pw.WriteRows([]parquet.Row{row})

Callers

nothing calls this directly

Calls 4

ObjectAddedMethod · 0.80
WriteMethod · 0.65
AddMethod · 0.65

Tested by

no test coverage detected