(trace *tempopb.Trace, encoding string, start, end uint32)
| 106 | } |
| 107 | |
| 108 | func 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 | } |
no test coverage detected