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

Method Append

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

Source from the content-addressed store, hash-verified

336}
337
338func (b *walBlock) Append(id common.ID, buff []byte, start, end uint32, adjustIngestionSlack bool) error {
339 // if decoder = nil we were created with OpenWALBlock and will not accept writes
340 if b.decoder == nil {
341 return nil
342 }
343
344 trace, err := b.decoder.PrepareForRead(buff)
345 if err != nil {
346 return fmt.Errorf("error preparing trace for read: %w", err)
347 }
348
349 return b.AppendTrace(id, trace, start, end, adjustIngestionSlack)
350}
351
352func (b *walBlock) IngestionSlack() time.Duration {
353 return b.ingestionSlack

Callers

nothing calls this directly

Calls 2

AppendTraceMethod · 0.95
PrepareForReadMethod · 0.65

Tested by

no test coverage detected