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

Function getSpanset

tempodb/encoding/vparquet3/block_traceql.go:729–738  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

727var spansetPool = sync.Pool{}
728
729func getSpanset() *traceql.Spanset {
730 ss := spansetPool.Get()
731 if ss == nil {
732 return &traceql.Spanset{
733 ReleaseFn: putSpansetAndSpans,
734 }
735 }
736
737 return ss.(*traceql.Spanset)
738}
739
740// putSpanset back into the pool. Does not repool the spans.
741func putSpanset(ss *traceql.Spanset) {

Callers 1

KeepGroupMethod · 0.70

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected