Skip to content

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

Merged
loutPhilipps merged 2 commits into
mainfrom
lout.philipps/span-attributes
Aug 5, 2026
Merged

search: add query_ast, counts, and warmup byte span attributes#6588
loutPhilipps merged 2 commits into
mainfrom
lout.philipps/span-attributes

Conversation

@loutPhilipps

@loutPhilipps loutPhilipps commented Jul 10, 2026

Copy link
Copy Markdown
Contributor
  • 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

@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".

Comment thread quickwit/quickwit-search/src/leaf.rs Outdated
@loutPhilipps
loutPhilipps force-pushed the lout.philipps/span-attributes branch from 248f437 to ecb2499 Compare July 21, 2026 12:46
@loutPhilipps
loutPhilipps changed the base branch from lout.philipps/fragmentation to lout.philipps/search-tracing-spans July 21, 2026 12:47
@loutPhilipps
loutPhilipps marked this pull request as draft July 21, 2026 12:47
@loutPhilipps
loutPhilipps marked this pull request as ready for review July 23, 2026 15:21
@loutPhilipps
loutPhilipps force-pushed the lout.philipps/span-attributes branch from ecb2499 to a464de8 Compare July 24, 2026 12:37
Comment thread quickwit/quickwit-search/src/leaf.rs Outdated
"warmup_mb",
byte_range_cache
.get_num_bytes()
.saturating_sub(cache_bytes_before_warmup) as f64

@fulmicoton-dd fulmicoton-dd Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think this is correct. Some of that data could have been in the fastfield cache for instance.

It kind on depends what you are interested in. If it is how much bytes are required for that task (regardless of whether it is downloaded or fetch from cache, then you just need to change the name of your field).

If you want the downloaded bytes, a metric exists at the Storage level.

/// not propagate to log events, so it can carry verbose values (e.g. a query AST)
/// without bloating logs. No-op when no OpenTelemetry layer is installed.
pub fn record_current_span_attribute(key: &'static str, value: impl Into<opentelemetry::Value>) {
Span::current().set_attribute(key, value);

@fulmicoton-dd fulmicoton-dd Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not he most useful helper. I would rather stick to inlining that code.

Base automatically changed from lout.philipps/search-tracing-spans to main July 31, 2026 08:21
@loutPhilipps
loutPhilipps force-pushed the lout.philipps/span-attributes branch from a464de8 to 607f5ee Compare August 4, 2026 13:10
@loutPhilipps
loutPhilipps force-pushed the lout.philipps/span-attributes branch from 607f5ee to a967c44 Compare August 4, 2026 14:18
@loutPhilipps
loutPhilipps requested a review from a team as a code owner August 4, 2026 14:18
@loutPhilipps
loutPhilipps enabled auto-merge (squash) August 5, 2026 08:18
@loutPhilipps
loutPhilipps merged commit dfe26f1 into main Aug 5, 2026
9 checks passed
@loutPhilipps
loutPhilipps deleted the lout.philipps/span-attributes branch August 5, 2026 08:28
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