(trace *tempopb.Trace)
| 324 | } |
| 325 | |
| 326 | func countSpans(trace *tempopb.Trace) int { |
| 327 | count := 0 |
| 328 | for _, b := range trace.ResourceSpans { |
| 329 | for _, ss := range b.ScopeSpans { |
| 330 | count += len(ss.Spans) |
| 331 | } |
| 332 | } |
| 333 | return count |
| 334 | } |
| 335 | |
| 336 | func (i *instance) cutIdleTraces(ctx context.Context, immediate bool) (bool, error) { |
| 337 | _, span := tracer.Start(ctx, "instance.cutIdleTraces", |