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

Function newMostRecentCombiner

pkg/traceql/combine.go:115–121  ·  view source on GitHub ↗
(limit int)

Source from the content-addressed store, hash-verified

113}
114
115func newMostRecentCombiner(limit int) *mostRecentCombiner {
116 return &mostRecentCombiner{
117 trs: make(map[string]*tempopb.TraceSearchMetadata, limit),
118 trsSorted: make([]*tempopb.TraceSearchMetadata, 0, limit),
119 keepMostRecent: limit,
120 }
121}
122
123// addSpanset adds a new spanset to the combiner. It only performs the asTraceSearchMetadata
124// conversion if the spanset will be added

Callers 1

NewMetadataCombinerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected