feat(router): fatal panics
Panics are exceptional, fatal events.
@@ -14,6 +14,7 @@ use ioxd_router::create_router2_server_type;
use object_store::DynObjectStore;
use object_store_metrics::ObjectStoreMetrics;
use observability_deps::tracing::*;
+use panic_logging::make_panics_fatal;
use std::sync::Arc;
use thiserror::Error;
@@ -71,6 +72,9 @@ pub async fn command(config: Config) -> Result<()> {
);
}
+ // Ensure panics are fatal when running in this server mode.
+ make_panics_fatal();
+
let common_state = CommonServerState::from_config(config.run_config.clone())?;
let time_provider = Arc::new(SystemProvider::new()) as Arc<dyn TimeProvider>;
let metrics = setup_metric_registry();
