Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore][Testbed] - Try flushing the data before exiting in load generator #35211

Merged
18 changes: 0 additions & 18 deletions testbed/testbed/load_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,6 @@ func (ps *ProviderSender) generateTrace() error {
return fmt.Errorf("cannot send traces: %w", err)
}
ps.nonPermanentErrors.Add(uint64(traceData.SpanCount()))

VihasMakwana marked this conversation as resolved.
Show resolved Hide resolved
select {
case <-ps.stopSignal:
return nil
default:
}
}
}

Expand All @@ -289,12 +283,6 @@ func (ps *ProviderSender) generateMetrics() error {
return fmt.Errorf("cannot send metrics: %w", err)
}
ps.nonPermanentErrors.Add(uint64(metricData.DataPointCount()))

select {
case <-ps.stopSignal:
return nil
default:
}
}
}

Expand All @@ -320,11 +308,5 @@ func (ps *ProviderSender) generateLog() error {
return fmt.Errorf("cannot send logs: %w", err)
}
ps.nonPermanentErrors.Add(uint64(logData.LogRecordCount()))

select {
case <-ps.stopSignal:
return nil
default:
}
}
}
Loading