Skip to content

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

Merged
lzchen merged 3 commits intoopen-telemetry:mainfrom
mariojonke:botocore-fix-uninstrument
Sep 8, 2021
Merged

botocore: Fix uninstrument to also unpatch header injection on Endpoint#664
lzchen merged 3 commits intoopen-telemetry:mainfrom
mariojonke:botocore-fix-uninstrument

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 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.

4 participants