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

Function mustMarshalToObjectWithRange

pkg/model/combine_test.go:108–121  ·  view source on GitHub ↗
(trace *tempopb.Trace, encoding string, start, end uint32)

Source from the content-addressed store, hash-verified

106}
107
108func mustMarshalToObjectWithRange(trace *tempopb.Trace, encoding string, start, end uint32) []byte {
109 b := MustNewSegmentDecoder(encoding)
110 batch, err := b.PrepareForWrite(trace, start, end)
111 if err != nil {
112 panic(err)
113 }
114
115 obj, err := b.ToObject([][]byte{batch})
116 if err != nil {
117 panic(err)
118 }
119
120 return obj
121}

Callers 2

mustMarshalToObjectFunction · 0.85
TestCombinesFunction · 0.85

Calls 3

MustNewSegmentDecoderFunction · 0.85
PrepareForWriteMethod · 0.65
ToObjectMethod · 0.65

Tested by

no test coverage detected