Skip to content

search: fix trace fragmentation and restructure spans#6620

Draft
loutPhilipps wants to merge 1 commit into
mainfrom
lout.philipps/search-tracing-spans
Draft

search: fix trace fragmentation and restructure spans#6620
loutPhilipps wants to merge 1 commit into
mainfrom
lout.philipps/search-tracing-spans

Conversation

@loutPhilipps

Copy link
Copy Markdown

Restructures search spans so a distributed search forms one coherent tree instead of fragmented, collinear siblings:

  • nest per-split spans under multi_index_leaf_search
  • add more granularity: plan_splits_for_root_search, list_relevant_splits, fetch_docs_in_split, and a per-split wrapper (leaf_search_single_split_wrapper) so each split's wait + warmup + tantivy form one subtree
  • split the CPU-pool queue wait out of tantivy_search into waiting_for_cpu_pool
  • surface search_partial_hits_phase so all leaves group under one node

- nest per-split spans under `multi_index_leaf_search`
- add more granularity: `plan_splits_for_root_search`, `list_relevant_splits`,
  `fetch_docs_in_split`, and a per-split wrapper (`leaf_search_single_split_wrapper`)
  so each split's wait + warmup + tantivy form one subtree
- split the CPU-pool queue wait out of `tantivy_search` into `waiting_for_cpu_pool`
- surface `search_partial_hits_phase` to have all leaves as children
split_id = split.split_id,
num_docs = split.num_docs
);
let wait_span = info_span!(parent: &split_span, "waiting_for_leaf_search_split_semaphore");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let wait_span = info_span!(parent: &split_span, "waiting_for_leaf_search_split_semaphore");
let wait_span = info_span!(parent: &split_span, "acquire_leaf_split_search_permit");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants