Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced service time metrics to OpenSearch-Py client. #716

Merged
merged 5 commits into from
Apr 15, 2024

Conversation

saimedhi
Copy link
Collaborator

@saimedhi saimedhi commented Apr 3, 2024

Description

Introduced service time metrics to OpenSearch-Py client.

Issues Resolved

#678

  • Added tests
  • Guide to be added
  • Service time metrics will be implemented for AsyncOpensearch in a subsequent PR

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.

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 65.78947% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 71.91%. Comparing base (ba715b9) to head (5247b67).

❗ Current head 5247b67 differs from pull request most recent head a625715. Consider uploading reports for the commit a625715 to get more accurate results

Files Patch % Lines
opensearchpy/metrics/metrics_events.py 48.48% 17 Missing ⚠️
opensearchpy/metrics/metrics.py 76.19% 5 Missing ⚠️
opensearchpy/connection/http_requests.py 66.66% 2 Missing ⚠️
opensearchpy/connection/http_urllib3.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #716      +/-   ##
==========================================
- Coverage   71.95%   71.91%   -0.05%     
==========================================
  Files          91       94       +3     
  Lines        8001     8085      +84     
==========================================
+ Hits         5757     5814      +57     
- Misses       2244     2271      +27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: saimedhi <saimedhi@amazon.com>
@saimedhi
Copy link
Collaborator Author

saimedhi commented Apr 3, 2024

The failing tests are not related to this PR but are caused by recent changes to the OpenSearch API Specification, which is now natively written in OpenAPI. The generator and developer guide will be fixed accordingly in an upcoming PR.

@saimedhi
Copy link
Collaborator Author

saimedhi commented Apr 5, 2024

@VachaShah please take a look

dblock
dblock previously approved these changes Apr 6, 2024
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Rebase? This LGTM.

Signed-off-by: Sai Medhini Reddy Maryada <117196660+saimedhi@users.noreply.github.com>
Signed-off-by: saimedhi <saimedhi@amazon.com>
Signed-off-by: saimedhi <saimedhi@amazon.com>
@saimedhi saimedhi marked this pull request as draft April 12, 2024 18:17
@saimedhi
Copy link
Collaborator Author

Ready for review

@saimedhi saimedhi marked this pull request as ready for review April 12, 2024 18:42
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Type Metrics when passed around, metrics: Metrics.

CHANGELOG.md Outdated Show resolved Hide resolved
opensearchpy/connection/http_requests.py Outdated Show resolved Hide resolved
opensearchpy/connection/http_urllib3.py Outdated Show resolved Hide resolved
opensearchpy/transport.py Outdated Show resolved Hide resolved
opensearchpy/transport.py Outdated Show resolved Hide resolved
Signed-off-by: saimedhi <saimedhi@amazon.com>
@dblock dblock merged commit 58e9b1d into opensearch-project:main Apr 15, 2024
52 of 54 checks passed
AbitraryYu pushed a commit to AbitraryYu/opensearch-py that referenced this pull request Apr 22, 2024
…project#716)

* Introduced service time metrics to opensearch-py client

Signed-off-by: saimedhi <saimedhi@amazon.com>

* Introduced service time metrics to opensearch-py client

Signed-off-by: saimedhi <saimedhi@amazon.com>

* Introduced service time metrics to opensearch-py client

Signed-off-by: saimedhi <saimedhi@amazon.com>

* Added service time metrics

Signed-off-by: saimedhi <saimedhi@amazon.com>

---------

Signed-off-by: saimedhi <saimedhi@amazon.com>
Signed-off-by: Sai Medhini Reddy Maryada <117196660+saimedhi@users.noreply.github.com>
Signed-off-by: AbitraryYu <nikkoyhc@gmail.com>
dblock pushed a commit to dblock/opensearch-py that referenced this pull request Aug 15, 2024
…project#716)

* Introduced service time metrics to opensearch-py client

Signed-off-by: saimedhi <saimedhi@amazon.com>

* Introduced service time metrics to opensearch-py client

Signed-off-by: saimedhi <saimedhi@amazon.com>

* Introduced service time metrics to opensearch-py client

Signed-off-by: saimedhi <saimedhi@amazon.com>

* Added service time metrics

Signed-off-by: saimedhi <saimedhi@amazon.com>

---------

Signed-off-by: saimedhi <saimedhi@amazon.com>
Signed-off-by: Sai Medhini Reddy Maryada <117196660+saimedhi@users.noreply.github.com>
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