Skip to main content

build_monitor

Function build_monitor 

Source
pub fn build_monitor(db_path: &str, config: &Config) -> ExperimentMonitor
Expand description

The monitor to serve with, rebuilt from the trace store at startup.

Only touches the store when some route has a challenger. Fails closed on the challenger: if the store cannot be read, the proxy still starts but serves the incumbent only (ExperimentMonitor::unavailable), because a challenger already proven worse must never be served again just because its history could not be read.