fix: categorize `NamespaceNotFound` as ingester not found errors as well
@@ -326,7 +326,8 @@ impl IngestHandler for IngestHandlerImpl {
if let Some(delta) = self.time_provider.now().checked_duration_since(t) {
match &res {
Ok(_) => self.query_duration_success.record(delta),
- Err(crate::querier_handler::Error::TableNotFound { .. }) => {
+ Err(crate::querier_handler::Error::TableNotFound { .. })
+ | Err(crate::querier_handler::Error::NamespaceNotFound { .. }) => {
self.query_duration_error_not_found.record(delta)
}
Err(_) => self.query_duration_error_other.record(delta),
