Skip to content

Conversation

@chrisparrinello
Copy link
Contributor

Creates new APM metrics for the fetch subphases. Metrics have names with the format of es.search.shards.phases.fetch.subphase.<subphase_name>.duration.histogram.

@chrisparrinello chrisparrinello requested a review from a team as a code owner September 30, 2025 17:03
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.2.0 labels Sep 30, 2025
boolean requiresSource = storedFieldsSpec.requiresSource();
final int[] locallyAccumulatedBytes = new int[1];
NestedDocuments nestedDocuments = context.getSearchExecutionContext().getNestedDocuments();
final Map<String, Long> subphaseAggregateDurations = new HashMap<>();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Part of the complicating factor here is that we call the subphase processors on individual hits, so we need to aggregate across all of the hits for this shard. Please let me know if I'm not understanding this code properly.

@chrisparrinello chrisparrinello added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations >enhancement and removed needs:triage Requires assignment of a team area label labels Sep 30, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine
Copy link
Collaborator

Hi @chrisparrinello, I've created a changelog YAML for you.

@chrisparrinello
Copy link
Contributor Author

Cancelling to rethink whether this is actually necessary.

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

Labels

>enhancement :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants