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

Function writeTraceToWal

integration/storage/backend_scheduler_test.go:470–479  ·  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

468}
469
470func writeTraceToWal(t require.TestingT, b common.WALBlock, dec model.SegmentDecoder, id common.ID, tr *tempopb.Trace, start, end uint32) {
471 b1, err := dec.PrepareForWrite(tr, 0, 0)
472 require.NoError(t, err)
473
474 b2, err := dec.ToObject([][]byte{b1})
475 require.NoError(t, err)
476
477 err = b.Append(id, b2, start, end, true)
478 require.NoError(t, err, "unexpected error writing req")
479}

Callers 2

populateBackendWithTraceFunction · 0.70
populateBackendFunction · 0.70

Calls 3

PrepareForWriteMethod · 0.65
ToObjectMethod · 0.65
AppendMethod · 0.65

Tested by

no test coverage detected