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

Function putSpan

tempodb/encoding/vparquet4/block_traceql.go:832–850  ·  view source on GitHub ↗
(s *span)

Source from the content-addressed store, hash-verified

830}
831
832func putSpan(s *span) {
833 s.id = nil
834 s.startTimeUnixNanos = 0
835 s.durationNanos = 0
836 s.rowNum = parquetquery.EmptyRowNumber()
837 s.cbSpansetFinal = false
838 s.cbSpanset = nil
839 s.nestedSetParent = 0
840 s.nestedSetLeft = 0
841 s.nestedSetRight = 0
842 s.spanAttrs = s.spanAttrs[:0]
843 s.resourceAttrs = s.resourceAttrs[:0]
844 s.traceAttrs = s.traceAttrs[:0]
845 s.eventAttrs = s.eventAttrs[:0]
846 s.linkAttrs = s.linkAttrs[:0]
847 s.instrumentationAttrs = s.instrumentationAttrs[:0]
848
849 spanPool.Put(s)
850}
851
852func getSpan() *span {
853 return spanPool.Get().(*span)

Callers 5

ReleaseMethod · 0.70
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