Skip to content

Urllib3 request hook#660

Merged
owais merged 9 commits intoopen-telemetry:mainfrom
helios:urllib3_request_hook
Sep 13, 2021
Merged

Urllib3 request hook#660
owais merged 9 commits intoopen-telemetry:mainfrom
helios:urllib3_request_hook

Conversation

@ItayGibel-helios
Copy link
Contributor

Description

Adding an option for an extended form of Urllib3 request hook with additional two arguments:

  1. headers - a dictionary containing the request headers
  2. body - a string containing the encoded request body

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Added a unit test named test_extended_request_hook testing the extended arguments

Does This PR Require a Core Repo Change?

  • 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

@ItayGibel-helios ItayGibel-helios requested a review from a team September 3, 2021 08:25
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 3, 2021

CLA Signed

The committers are authorized under a signed CLA.

CHANGELOG.md Outdated

### Changed

- `opentelemetry-instrumentation-urllib3` Added `_ExtendedRequestHookT` as an optional type of `request_hook`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this description still accurate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, it wasn't, pushed an update to it just now

@owais owais merged commit b47328e into open-telemetry:main Sep 13, 2021
@nozik nozik deleted the urllib3_request_hook branch November 7, 2021 15:13
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.

5 participants