Skip to content

Commit 8354492

Browse files
authored
[CHORE] Do not trace errors stemming from NotFound sparse indexes (#5531)
## Description of changes This isn't really an "error", more of a warning. Mirroring implementation of similar fix: #5516 ## Test plan CI ## Migration plan N/A ## Observability plan Ensure traces are no longer generated for this condition. ## Documentation Changes N/A
1 parent 4bfd53c commit 8354492

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rust/garbage_collector/src/operators/fetch_sparse_index_files.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ impl ChromaError for FetchSparseIndexFilesError {
5959
FetchSparseIndexFilesError::ParsingIdFailed => ErrorCodes::Internal,
6060
}
6161
}
62+
63+
fn should_trace_error(&self) -> bool {
64+
self.code() != ErrorCodes::NotFound
65+
}
6266
}
6367

6468
#[async_trait]

0 commit comments

Comments
 (0)