Result returns the final trace and span count.
()
| 149 | |
| 150 | // Result returns the final trace and span count. |
| 151 | func (c *Combiner) Result() (*tempopb.Trace, int) { |
| 152 | spanCount := -1 |
| 153 | |
| 154 | if c.result != nil && c.combined { |
| 155 | // Only if anything combined |
| 156 | SortTrace(c.result) |
| 157 | spanCount = len(c.spans) |
| 158 | } |
| 159 | |
| 160 | return c.result, spanCount |
| 161 | } |
| 162 | |
| 163 | // Returns true if the combined trace is a partial one if partal trace is enabled |
| 164 | func (c *Combiner) IsPartialTrace() bool { |