(ts time.Time, tenantBytes, reqBytes []byte, p partitionSectionWriter)
| 635 | } |
| 636 | |
| 637 | func (b *BlockBuilder) pushTraces(ts time.Time, tenantBytes, reqBytes []byte, p partitionSectionWriter) error { |
| 638 | req, err := b.decoder.Decode(reqBytes) |
| 639 | if err != nil { |
| 640 | return fmt.Errorf("failed to decode trace: %w", err) |
| 641 | } |
| 642 | defer b.decoder.Reset() |
| 643 | |
| 644 | return p.pushBytes(ts, string(tenantBytes), req) |
| 645 | } |
| 646 | |
| 647 | // Gets assigned partitions, these can be active or inactive. Pending partitions won't be included |
| 648 | func (b *BlockBuilder) getAssignedPartitions() []int32 { |
no test coverage detected