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

Function getSpanset

tempodb/encoding/vparquet4/block_traceql.go:858–867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

856var spansetPool = sync.Pool{}
857
858func getSpanset() *traceql.Spanset {
859 ss := spansetPool.Get()
860 if ss == nil {
861 return &traceql.Spanset{
862 ReleaseFn: putSpansetAndSpans,
863 }
864 }
865
866 return ss.(*traceql.Spanset)
867}
868
869// putSpanset back into the pool. Does not repool the spans.
870func putSpanset(ss *traceql.Spanset) {

Callers 1

KeepGroupMethod · 0.70

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected