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

Method Add

tempodb/encoding/vparquet5/create.go:174–188  ·  tempodb/encoding/vparquet5/create.go::streamingBlock.Add
(tr *Trace, start, end uint32)

Source from the content-addressed store, hash-verified

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