feat(ingester): fatal panics
Panics are exceptional, fatal events.
@@ -13,6 +13,7 @@ use ioxd_ingester::create_ingester_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;
@@ -94,6 +95,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>;
