don't spam newrelic

This commit is contained in:
Brandon Thomas committed 2021-09-13 05:46:18 -04:00
1 parent 7bcb9090ae
commit 58af7c52c8
1 file changed
+1 -2
+1 -2
View File
@@ -369,8 +369,7 @@ async fn main_loop(inferencer: Inferencer) {
span_batch.append(&mut spans);
if span_batch.len() > 1 {
//let spans_to_send = span_batch.drain(..).collect();
if span_batch.len() > 50 {
let spans_to_send = span_batch.split_off(0).into();
inferencer.newrelic_client.send_spans(spans_to_send).await;
}