mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 20:38:06 +00:00
address telemetry log message locality (#736)
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
use super::afl;
|
||||
use anyhow::{Error, Result};
|
||||
use onefuzz::jitter::delay_with_jitter;
|
||||
use onefuzz_telemetry::{track_event, Event::runtime_stats};
|
||||
use onefuzz_telemetry::Event::runtime_stats;
|
||||
use serde::Deserialize;
|
||||
pub const STATS_DELAY: std::time::Duration = std::time::Duration::from_secs(30);
|
||||
|
||||
@ -21,7 +21,7 @@ pub async fn monitor_stats(path: Option<String>, format: Option<StatsFormat>) ->
|
||||
StatsFormat::AFL => afl::read_stats(&path).await,
|
||||
};
|
||||
if let Ok(stats) = stats {
|
||||
track_event(runtime_stats, stats);
|
||||
log_events!(runtime_stats; stats);
|
||||
}
|
||||
delay_with_jitter(STATS_DELAY).await;
|
||||
}
|
||||
|
Reference in New Issue
Block a user