(id common.ID, buff []byte, start, end uint32, adjustIngestionSlack bool)
| 326 | } |
| 327 | |
| 328 | func (b *walBlock) Append(id common.ID, buff []byte, start, end uint32, adjustIngestionSlack bool) error { |
| 329 | // if decoder = nil we were created with OpenWALBlock and will not accept writes |
| 330 | if b.decoder == nil { |
| 331 | return nil |
| 332 | } |
| 333 | |
| 334 | trace, err := b.decoder.PrepareForRead(buff) |
| 335 | if err != nil { |
| 336 | return fmt.Errorf("error preparing trace for read: %w", err) |
| 337 | } |
| 338 | |
| 339 | return b.AppendTrace(id, trace, start, end, adjustIngestionSlack) |
| 340 | } |
| 341 | |
| 342 | func (b *walBlock) AppendTrace(id common.ID, trace *tempopb.Trace, start, end uint32, adjustIngestionSlack bool) error { |
| 343 | var connected bool |
nothing calls this directly
no test coverage detected