mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 23:26:02 +00:00
don't spam newrelic
This commit is contained in:
1 parent
7bcb9090ae
commit
58af7c52c8
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user