refactor(metrics): encapsulate metric dispatch with MetricsSender
This commit is contained in:
2 files changed
+58
-22
No files matched your search
+2
-3
@@ -14,13 +14,12 @@ mod time;
|
||||
mod util;
|
||||
|
||||
use crate::baseliner::{Baseliner, ReflectorStats};
|
||||
use crate::metrics::{Metric, Metrics};
|
||||
use crate::time::Time;
|
||||
use crate::metrics::{Metric, Metrics, MetricsSender};
|
||||
use ::log::{debug, info};
|
||||
use rustix::time::ClockId;
|
||||
use std::collections::HashMap;
|
||||
use std::net::IpAddr;
|
||||
use std::str::FromStr;
|
||||
use std::sync::atomic::AtomicU64;
|
||||
use std::sync::mpsc::{channel, sync_channel};
|
||||
use std::sync::{Arc, Mutex, RwLock};
|
||||
use std::thread::sleep;
|
||||
|
||||
Reference in new issue
Block a user