(limit int)
| 113 | } |
| 114 | |
| 115 | func 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 |
no outgoing calls
no test coverage detected