/// Creates a `Prober` listening on the given address, exporting its own
/// metrics to the given registry and using the given logger for logging.
Creates a `Prober` listening on the given address, exporting its own
metrics to the given registry and using the given logger for logging.
Creates a ` Prober ` listening on the given address exporting its own metrics to the given registry and using the given logger for logging .
pub fn new(address: SocketAddr, registry: MetricsRegistry, log: Logger) -> Self {
        let server =
            Server::http(address).unwrap_or_else(|e| panic!("Starting HTTP server failed: {}", e));
        Self {
            server,
            metrics: Arc::new(ProberMetrics::new(&registry)),
            registry: Arc::new(registry),
            log: Arc::new(log),
        }
    }
pub fn new ( address : SocketAddr , registry : MetricsRegistry , log : Logger ) -> Self { let server = Server :: http ( address ) . unwrap_or_else ( | e | panic ! ( " " e ) ) ; Self { server , metrics : Arc :: new ( ProberMetrics :: new ( & registry ) ) , registry : Arc :: new ( registry ) , log : Arc :: new ( log ) , } }
Creates a `Prober` listening on the given address, exporting its own
metrics to the given registry and using the given logger for logging.
Creates a ` Prober ` listening on the given address exporting its own metrics to the given registry and using the given logger for logging .
address
SocketAddr
registry
MetricsRegistry
log
Logger