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

Function putSpan

tempodb/encoding/vparquet5/block_traceql.go:914–932  ·  view source on GitHub ↗
(s *span)

Source from the content-addressed store, hash-verified

912}
913
914func putSpan(s *span) {
915 s.id = nil
916 s.startTimeUnixNanos = 0
917 s.durationNanos = 0
918 s.rowNum = parquetquery.EmptyRowNumber()
919 s.cbSpansetFinal = false
920 s.cbSpanset = nil
921 s.nestedSetParent = 0
922 s.nestedSetLeft = 0
923 s.nestedSetRight = 0
924 s.spanAttrs = s.spanAttrs[:0]
925 s.resourceAttrs = s.resourceAttrs[:0]
926 s.traceAttrs = s.traceAttrs[:0]
927 s.eventAttrs = s.eventAttrs[:0]
928 s.linkAttrs = s.linkAttrs[:0]
929 s.instrumentationAttrs = s.instrumentationAttrs[:0]
930
931 spanPool.Put(s)
932}
933
934func getSpan() *span {
935 return spanPool.Get().(*span)

Callers 6

ReleaseMethod · 0.70
putSpansetAndSpansFunction · 0.70
NextMethod · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70
TestSpanPoolReleaseFunction · 0.70

Calls 2

EmptyRowNumberFunction · 0.92
PutMethod · 0.45

Tested by 1

TestSpanPoolReleaseFunction · 0.56