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

Method pushTraces

modules/blockbuilder/blockbuilder.go:637–645  ·  view source on GitHub ↗
(ts time.Time, tenantBytes, reqBytes []byte, p partitionSectionWriter)

Source from the content-addressed store, hash-verified

635}
636
637func (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
648func (b *BlockBuilder) getAssignedPartitions() []int32 {

Callers 1

consumePartitionMethod · 0.95

Calls 3

DecodeMethod · 0.65
ResetMethod · 0.65
pushBytesMethod · 0.65

Tested by

no test coverage detected