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

botocore: Fix uninstrument to also unpatch header injection on Endpoint #664

Merged
merged 3 commits into from Sep 8, 2021

Conversation

mariojonke
Copy link
Contributor

@mariojonke mariojonke commented Sep 7, 2021

Description

botocore instrumentor is patching botocore.endpoint.Endpoint.prepare_reqyest in the instrument method but did not unpatch it in the uninstrument method.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Additional unit test was added

Does This PR Require a Core Repo Change?

  • No.

Checklist:

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

* botocore.endpoint.Endpoint.prepare_request is patched in the instrument method but
  unpatching it in the uninstrument method was missing
@mariojonke mariojonke requested a review from a team as a code owner September 7, 2021 14:50
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

LGTM

@codeboten codeboten closed this Sep 8, 2021
@codeboten codeboten reopened this Sep 8, 2021
@codeboten
Copy link
Contributor

Not sure what the deal with the CLA check was... looks like its fixed now.

@lzchen lzchen merged commit fd5fc9a into open-telemetry:main Sep 8, 2021
@mariojonke mariojonke deleted the botocore-fix-uninstrument branch October 8, 2021 08:32
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.

None yet

4 participants