It creates a new Trace combiner. If maxSizeBytes is 0, the final trace size is not checked when allowPartialTrace is set to true a partial trace that exceed the max size may be returned
(maxSizeBytes int, allowPartialTrace bool)
| 35 | // It creates a new Trace combiner. If maxSizeBytes is 0, the final trace size is not checked |
| 36 | // when allowPartialTrace is set to true a partial trace that exceed the max size may be returned |
| 37 | func NewCombiner(maxSizeBytes int, allowPartialTrace bool) *Combiner { |
| 38 | return &Combiner{ |
| 39 | mtx: sync.Mutex{}, |
| 40 | maxSizeBytes: maxSizeBytes, |
| 41 | allowPartialTrace: allowPartialTrace, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // Consume the given trace and destructively combines its contents. |
| 46 | func (c *Combiner) Consume(tr *tempopb.Trace) (int, error) { |
no outgoing calls