We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e31bcd3 commit 8e9f6cfCopy full SHA for 8e9f6cf
testutil/tracing.go
@@ -25,7 +25,7 @@ type Collector struct {
25
26
// ExportSpans receives the ReadOnlySpans from the batch provider
27
func (c *Collector) ExportSpans(ctx context.Context, spans []trace.ReadOnlySpan) error {
28
- c.Spans = tracetest.SpanStubsFromReadOnlySpans(spans)
+ c.Spans = append(c.Spans, tracetest.SpanStubsFromReadOnlySpans(spans)...)
29
sort.SliceStable(c.Spans, func(i, j int) bool {
30
return c.Spans[i].StartTime.Before(c.Spans[j].StartTime)
31
})
0 commit comments