opensearch-project / query-insights

Query Insights plugin offers frameworks and APIs for analyzing and optimizing query performance in OpenSearch.
Apache License 2.0
8 stars 7 forks source link

Make sure listener is started when query metrics enabled #74

Closed deshsidd closed 2 months ago

deshsidd commented 2 months ago

Description

Listener is only started when Top N is enabled. We need to also start the listener when query metrics is enabled. Also completed some minor refactoring and updating tests.

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.