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

Method AppendTrace

tempodb/encoding/common/interfaces.go:125–125  ·  view source on GitHub ↗

AppendTrace adds the given trace to the block. This method must be safe for concurrent use with read operations. Parameters: - id: The ID of the trace. - tr: The trace object. - start: The start time of the trace. - end: The end time of the trace. - adjustIngestionSlack: If true, adjusts the ingesti

(id ID, tr *tempopb.Trace, start, end uint32, adjustIngestionSlack bool)

Source from the content-addressed store, hash-verified

123 // - adjustIngestionSlack: If true, adjusts the ingestion slack based on the current time (now()).
124 // Returns an error if the append operation fails.
125 AppendTrace(id ID, tr *tempopb.Trace, start, end uint32, adjustIngestionSlack bool) error
126
127 // IngestionSlack returns the duration of the ingestion slack.
128 IngestionSlack() time.Duration

Callers 12

runWALTestWithAppendModeFunction · 0.65
TestWalBlockMetaSnapshotFunction · 0.65
TestWalBlockTombstoneFunction · 0.65
TestWalBlockMetaSnapshotFunction · 0.65
TestWalBlockTombstoneFunction · 0.65
TestWalBlockMetaSnapshotFunction · 0.65
TestWalBlockTombstoneFunction · 0.65
writeHistoricalDataFunction · 0.65
pushBytesMethod · 0.65
writeHeadBlockMethod · 0.65

Implementers 3

walBlocktempodb/encoding/vparquet4/wal_block.g
walBlocktempodb/encoding/vparquet5/wal_block.g
walBlocktempodb/encoding/vparquet3/wal_block.g

Calls

no outgoing calls

Tested by 10

runWALTestWithAppendModeFunction · 0.52
TestWalBlockMetaSnapshotFunction · 0.52
TestWalBlockTombstoneFunction · 0.52
TestWalBlockMetaSnapshotFunction · 0.52
TestWalBlockTombstoneFunction · 0.52
TestWalBlockMetaSnapshotFunction · 0.52
TestWalBlockTombstoneFunction · 0.52
writeHistoricalDataFunction · 0.52