Skip to content

Conversation

@ashu658
Copy link
Member

@ashu658 ashu658 commented Apr 20, 2022

Description

Changing add_custom_request_headers to collect_custom_request_headers_attributes and add_custom_response_headers to collect_custom_response_headers_attributes for making it consistent across ASGI, WSGI and tornado.

Fixes #1025

Type of change

Please delete options that are not relevant.

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

How Has This Been Tested?

Running available unit tests to capture request and response headers.

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

@ashu658 ashu658 requested a review from a team April 20, 2022 07:51
CHANGELOG.md Outdated
([#999])(https://github.com/open-telemetry/opentelemetry-python-contrib/pull/999)
- `opentelemetry-instrumentation-tornado` Fix non-recording span bug
([#999])(https://github.com/open-telemetry/opentelemetry-python-contrib/pull/999)
- Refactoring custom header collection API for consistency
Copy link
Member

Choose a reason for hiding this comment

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

Move this to unreleased section

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@srikanthccv srikanthccv merged commit 6f620ee into open-telemetry:main Apr 27, 2022
@ashu658 ashu658 deleted the refactor-collect-custom-header-api branch April 27, 2022 08:35
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.

API to collect custom headers from request and response object are not consistent in ASGI and WSGI frameworks

3 participants