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

Method PrepareForWrite

pkg/model/segment_decoder.go:21–21  ·  view source on GitHub ↗

PrepareForWrite takes a trace pointer and returns a record prepared for writing to an ingester

(trace *tempopb.Trace, start uint32, end uint32)

Source from the content-addressed store, hash-verified

19type SegmentDecoder interface {
20 // PrepareForWrite takes a trace pointer and returns a record prepared for writing to an ingester
21 PrepareForWrite(trace *tempopb.Trace, start uint32, end uint32) ([]byte, error)
22 // PrepareForRead converts a set of segments created using PrepareForWrite. These segments
23 // are converted into a tempopb.Trace. This operation can be quite costly and should be called only for reading
24 PrepareForRead(segments [][]byte) (*tempopb.Trace, error)

Implementers 2

SegmentDecoderpkg/model/v2/segment_decoder.go
SegmentDecoderpkg/model/v1/segment_decoder.go

Calls

no outgoing calls