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

Method Add

tempodb/encoding/vparquet3/create.go:142–156  ·  view source on GitHub ↗
(tr *Trace, start, end uint32)

Source from the content-addressed store, hash-verified

140}
141
142func (b *streamingBlock) Add(tr *Trace, start, end uint32) error {
143 _, err := b.pw.Write([]*Trace{tr})
144 if err != nil {
145 return err
146 }
147 id := tr.TraceID
148
149 b.index.Add(id)
150 b.bloom.Add(id)
151 b.meta.ObjectAdded(start, end)
152 b.currentBufferedTraces++
153 b.currentBufferedBytes += estimateMarshalledSizeFromTrace(tr)
154
155 return nil
156}
157
158func (b *streamingBlock) AddRaw(id []byte, row parquet.Row, start, end uint32) error {
159 _, 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