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

Method Append

tempodb/encoding/vparquet3/wal_block.go:328–340  ·  view source on GitHub ↗
(id common.ID, buff []byte, start, end uint32, adjustIngestionSlack bool)

Source from the content-addressed store, hash-verified

326}
327
328func (b *walBlock) Append(id common.ID, buff []byte, start, end uint32, adjustIngestionSlack bool) error {
329 // if decoder = nil we were created with OpenWALBlock and will not accept writes
330 if b.decoder == nil {
331 return nil
332 }
333
334 trace, err := b.decoder.PrepareForRead(buff)
335 if err != nil {
336 return fmt.Errorf("error preparing trace for read: %w", err)
337 }
338
339 return b.AppendTrace(id, trace, start, end, adjustIngestionSlack)
340}
341
342func (b *walBlock) AppendTrace(id common.ID, trace *tempopb.Trace, start, end uint32, adjustIngestionSlack bool) error {
343 var connected bool

Callers

nothing calls this directly

Calls 2

AppendTraceMethod · 0.95
PrepareForReadMethod · 0.65

Tested by

no test coverage detected