diff --git a/sdk/trace/batch_span_processor.go b/sdk/trace/batch_span_processor.go index ccc97e1b662..0a88239336c 100644 --- a/sdk/trace/batch_span_processor.go +++ b/sdk/trace/batch_span_processor.go @@ -201,7 +201,7 @@ func (bsp *batchSpanProcessor) ForceFlush(ctx context.Context) error { } } - wait := make(chan error) + wait := make(chan error, 1) go func() { wait <- bsp.exportSpans(ctx) close(wait)