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

Add support for regular expression matching and sanitizing of headers. #1172

Closed
wants to merge 1 commit into from

Conversation

rogersd
Copy link
Contributor

@rogersd rogersd commented Jun 30, 2022

Description

Add support for regular expression matching and sanitizing of headers.
Add test cases for regular expression matching.
Add test cases for "all" keyword.
Add test cases for header sanitizing.
Add documentation for regular expression matching and header sanitation.
Various documentation cleanups and standardization.
Fix keys() in class ASGIGetter so it returns the HTTP header keys instead of a list of available request data. This makes it consistent with the WSGIGetter keys() method.
Make ASGIGetter.get() compare all keys in a case insensitive manner.
Use resp.text instead of resp.body for Falcon 3 to avoid a deprecation warning.
Remove duplicate documentation from instrumentation/opentelemetry-instrumentation-flask/README.rst as in ae7a415
Various formatting fixes.

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)
  • This change requires a documentation update

How Has This Been Tested?

I have run the existing unit tests, and also added new ones for the new features.

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

@rogersd rogersd requested a review from a team June 30, 2022 20:19
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 30, 2022

CLA Not Signed

@lzchen
Copy link
Contributor

lzchen commented Jul 1, 2022

@rogersd
What feature is this adding specifically and to which instrumentations? Could you create a corresponding issue to outline the new behavior you are trying to create? Also, I recommend splitting up the pr into smaller prs (maybe per instrumentation) as it would be easier to review.

@srikanthccv
Copy link
Member

@rogersd that's a lot of changes in lot of files. Please open a small and separate PR for each change to get reviews. It's not possible to review this PR as is.

@rogersd
Copy link
Contributor Author

rogersd commented Jul 15, 2022

Yeah, I'm going to, I just need to wait for the company I work for to get set up with EasyCLA. In the meantime I'll convert this to a draft PR.

@rogersd rogersd marked this pull request as draft July 15, 2022 20:16
Also:

Add test cases for regular expression matching.
Add test cases for "all" keyword.
Add test cases for header sanitizing.
Add documentation for regular expression matching and header sanitation.
Various documentation cleanups and standardization.
Fix keys() in class ASGIGetter so it returns the HTTP header keys instead of a list of available request data.  This makes it consistent with the WSGIGetter keys() method.
Make ASGIGetter.get() compare all keys in a case insensitive manner.
Use resp.text instead of resp.body for Falcon 3 to avoid a deprecation warning.
Remove duplicate documentation from instrumentation/opentelemetry-instrumentation-flask/README.rst as in ae7a415
Various formatting fixes.
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.

3 participants