// Close sends the remaining spans that have not been sent yet.
Close sends the remaining spans that have not been sent yet.
// Close sends the remaining spans that have not been sent yet .
func (e *Exporter) Close() (int, error) {
	var sendBatch []*trace.SpanData
	e.mu.Lock()
	{
		sendBatch = e.batch
	}
	e.mu.Unlock()
	err := e.send(sendBatch)
	if err != nil {
		return len(sendBatch), err
	}
	return len(sendBatch), nil
}
func ( e * Exporter ) Close ( ) ( int , error ) { var sendBatch [ ] * trace . SpanData e . mu . Lock ( ) { sendBatch = e . batch } e . mu . Unlock ( ) err := e . send ( sendBatch ) if err != nil { return len ( sendBatch ) , err } return len ( sendBatch ) , nil }
Close sends the remaining spans that have not been sent yet.
Close sends the remaining spans that have not been sent yet .