opensearch-project/OpenSearch

[Feature Request] Enable debug logging for Approximation framework

開放

#18,318 建立於 2025年5月16日

 (8 則留言) (0 個反應) (2 位負責人)Java (1,505 個分叉)batch import
Search:Performanceenhancementgood first issue

倉庫指標

星標
 (8,123 顆星)
PR 合併指標
 (平均合併 5天 9小時) (30 天內合併 266 個 PR)

描述

Is your feature request related to a problem? Please describe

Similar to how we have debug logs in other optimization paths eg - https://github.com/opensearch-project/OpenSearch/blob/5fb4e6951b6c80db5c9c45398ed3704ac4092ba3/server/src/main/java/org/opensearch/search/aggregations/bucket/filterrewrite/FilterRewriteOptimizationContext.java#L89.

We should enable debug logging for how the optimization works, how many docs per segment we are collecting. How many nodes of the point tree we are visiting, how many leaves we are reading etc. This should help us understand if/when there are regressions.

Describe the solution you'd like

  • Enable debug logging
  • Enable more logs by adding them to AbstractProfiler so that we can profile the results

Related component

Search:Performance

Describe alternatives you've considered

No response

Additional context

No response

貢獻者指南