Skip to content

Commit 89b71ea

Browse files
authored
[CHORE] Add some debug to hnsw index load (#5979)
## Description of changes _Summarize the changes made by this PR._ - Improvements & Bug fixes - Add some better tracing - New functionality - None ## Test plan _How are these changes tested?_ - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Migration plan None ## Observability plan None ## Documentation Changes None
1 parent b812a8a commit 89b71ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rust/index/src/hnsw_provider.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,7 @@ impl HnswIndexProvider {
342342
.map(|s| Self::format_key(prefix_path, source_id, s))
343343
.collect();
344344
let key_refs: Vec<&str> = keys.iter().map(|s| s.as_str()).collect();
345-
let s3_fetch_span =
346-
tracing::trace_span!(parent: Span::current(), "Read hnsw files from s3 into index");
345+
let s3_fetch_span = tracing::trace_span!(parent: Span::current(), "Read hnsw files from s3 into index", index_id = %source_id, prefix_path = %prefix_path);
347346
let result = self
348347
.storage
349348
.fetch_batch(

0 commit comments

Comments
 (0)