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

Function writeTraceToWal

tempodb/tempodb_test.go:700–709  ·  view source on GitHub ↗
(t require.TestingT, b common.WALBlock, dec model.SegmentDecoder, id common.ID, tr *tempopb.Trace, start, end uint32)

Source from the content-addressed store, hash-verified

698}
699
700func writeTraceToWal(t require.TestingT, b common.WALBlock, dec model.SegmentDecoder, id common.ID, tr *tempopb.Trace, start, end uint32) {
701 b1, err := dec.PrepareForWrite(tr, 0, 0)
702 require.NoError(t, err)
703
704 b2, err := dec.ToObject([][]byte{b1})
705 require.NoError(t, err)
706
707 err = b.Append(id, b2, start, end, true)
708 require.NoError(t, err, "unexpected error writing req")
709}
710
711func BenchmarkCompleteBlock(b *testing.B) {
712 for _, enc := range encoding.AllEncodingsForWrites() {

Callers 12

TestDBFunction · 0.70
TestBlockShardingFunction · 0.70
testCompleteBlockFunction · 0.70
benchmarkCompleteBlockFunction · 0.70
TestNoCompactFlagFunction · 0.70
TestPollNotificationFunction · 0.70
testCompactionRoundtripFunction · 0.70
cutTestBlockWithTracesFunction · 0.70
cutTestBlocksFunction · 0.70

Calls 3

PrepareForWriteMethod · 0.65
ToObjectMethod · 0.65
AppendMethod · 0.65

Tested by

no test coverage detected