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

Update __init__.py #1205 #1238

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

rahuldimri
Copy link
Contributor

@rahuldimri rahuldimri commented Aug 22, 2022

Description

Add instrumentation of AsyncTransport

Fixes #1205

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@rahuldimri rahuldimri requested a review from a team August 22, 2022 14:05
@@ -138,7 +138,7 @@ def _instrument(self, **kwargs):
response_hook = kwargs.get("response_hook")
_wrap(
elasticsearch,
"Transport.perform_request",
"AsyncTransport.perform_request",
Copy link
Member

Choose a reason for hiding this comment

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

This is not the right solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes working on the rest of the code. thanks for keeping an eye on this.

Copy link
Member

Choose a reason for hiding this comment

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

Please convert this to draft if it's not ready for reviews yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need to add support for AsyncTransport ?

Copy link
Member

Choose a reason for hiding this comment

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

That is the feature request. Did you read the issue? You don't replace one with other. And there should be tests.

@ocelotl ocelotl marked this pull request as draft August 23, 2022 08:27
@rahuldimri rahuldimri requested a review from srikanthccv August 23, 2022 14:22
@rahuldimri rahuldimri marked this pull request as ready for review August 26, 2022 07:42
@rahuldimri rahuldimri marked this pull request as draft September 1, 2022 06:37
@srikanthccv
Copy link
Member

@rahuldimri, what does this do? are still working on this?

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.

[instrumentation-elasticsearch] Add instrumentation of AsyncTransport
2 participants