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

Method Append

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

Source from the content-addressed store, hash-verified

348}
349
350func (b *walBlock) Append(id common.ID, buff []byte, start, end uint32, adjustIngestionSlack bool) error {
351 // if decoder = nil we were created with OpenWALBlock and will not accept writes
352 if b.decoder == nil {
353 return nil
354 }
355
356 trace, err := b.decoder.PrepareForRead(buff)
357 if err != nil {
358 return fmt.Errorf("error preparing trace for read: %w", err)
359 }
360
361 return b.AppendTrace(id, trace, start, end, adjustIngestionSlack)
362}
363
364func (b *walBlock) IngestionSlack() time.Duration {
365 return b.ingestionSlack

Callers

nothing calls this directly

Calls 2

AppendTraceMethod · 0.95
PrepareForReadMethod · 0.65

Tested by

no test coverage detected