Skip to content

search: add query_ast, counts, and warmup byte span attributes#6588

Open
loutPhilipps wants to merge 1 commit into
lout.philipps/fragmentationfrom
lout.philipps/span-attributes
Open

search: add query_ast, counts, and warmup byte span attributes#6588
loutPhilipps wants to merge 1 commit into
lout.philipps/fragmentationfrom
lout.philipps/span-attributes

Conversation

@loutPhilipps

@loutPhilipps loutPhilipps commented Jul 10, 2026

Copy link
Copy Markdown
  • add query AST, split and doc count, time range to the root_search span attributes
  • add warmup_mb and downloaded_mb as attributes on the warmup span
image image

🤖 Generated with Claude Code

Adds query AST, split and doc count, time range to the root_search
span attributes, and warmup_mb/downloaded_mb attributes on the warmup
span.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@loutPhilipps loutPhilipps marked this pull request as ready for review July 10, 2026 16:18
@loutPhilipps loutPhilipps requested a review from a team as a code owner July 10, 2026 16:18

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 248f437efe

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

);
warmup_span.record(
"downloaded_mb",
download_counters.snapshot().0 as f64 / BYTES_PER_MB,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reset download counters before recording warmup downloads

When the split footer or split-cache entry is cold, this value includes reads that happened before the warmup span even started: the storage is wrapped by CountingStorage before open_index_with_caches, and open_split_bundle may fetch the split footer with get_slice before warmup_start. Recording the cumulative snapshot().0 here therefore attributes pre-warmup downloads to the warmup span and overstates warmup download volume on cold-cache searches; capture a baseline after opening the index or subtract the pre-warmup count.

Useful? React with 👍 / 👎.

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.

1 participant