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

Method ToObject

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

ToObject converts a set of segments into an object ready to be written to the tempodb backend. The resultant byte slice can then be manipulated using the corresponding ObjectDecoder. ToObject is on the write path and should do as little as possible.

(segments [][]byte)

Source from the content-addressed store, hash-verified

26 // The resultant byte slice can then be manipulated using the corresponding ObjectDecoder.
27 // ToObject is on the write path and should do as little as possible.
28 ToObject(segments [][]byte) ([]byte, error)
29 // FastRange returns the start and end unix epoch timestamp of the provided segment. If its not possible to efficiently get these
30 // values from the underlying encoding then it should return decoder.ErrUnsupported
31 FastRange(segment []byte) (uint32, uint32, error)

Implementers 2

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

Calls

no outgoing calls