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

Function putSpan

tempodb/encoding/vparquet3/block_traceql.go:706–721  ·  view source on GitHub ↗
(s *span)

Source from the content-addressed store, hash-verified

704}
705
706func putSpan(s *span) {
707 s.id = nil
708 s.startTimeUnixNanos = 0
709 s.durationNanos = 0
710 s.rowNum = parquetquery.EmptyRowNumber()
711 s.cbSpansetFinal = false
712 s.cbSpanset = nil
713 s.nestedSetParent = 0
714 s.nestedSetLeft = 0
715 s.nestedSetRight = 0
716 s.spanAttrs = s.spanAttrs[:0]
717 s.resourceAttrs = s.resourceAttrs[:0]
718 s.traceAttrs = s.traceAttrs[:0]
719
720 spanPool.Put(s)
721}
722
723func getSpan() *span {
724 return spanPool.Get().(*span)

Callers 4

putSpansetAndSpansFunction · 0.70
NextMethod · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70

Calls 2

EmptyRowNumberFunction · 0.92
PutMethod · 0.45

Tested by

no test coverage detected