Skip to content

Commit

Permalink
chore: flush the data before exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
VihasMakwana committed Sep 16, 2024
1 parent 27fad22 commit 55c07ae
Showing 1 changed file with 0 additions and 18 deletions.
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()))

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:
}
}
}

0 comments on commit 55c07ae

Please sign in to comment.