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

Repeated headers list for ASGI frameworks #2361

Merged
merged 24 commits into from
Jun 20, 2024

Conversation

samuelcolvin
Copy link
Contributor

@samuelcolvin samuelcolvin commented Mar 20, 2024

Description

Use a list, rather than a comma separate string to represent repeated HTTP request and response headers.

fixes #2360
fixes #2358
followup to #2266

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)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

tests updated

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • 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/updated
  • Documentation has been updated

@xrmx
Copy link
Contributor

xrmx commented Mar 22, 2024

@samuelcolvin please rebase

@samuelcolvin
Copy link
Contributor Author

samuelcolvin commented May 1, 2024

Okay, think this is good.

I got so confused about all the wsgi based web frameworks, some use enviroment variables to pass request headers (and repsonse headers? 🤷 ) some don't, sometimes. It's not helped by the fact that lots of the tests combine "multiple" headers into one key-value pair with comma separation.

I therefore reverted all the changes in wsgi and flask, and concentrated on getting the ASGI based frameworks right.

@samuelcolvin samuelcolvin changed the title Repeated headers list Repeated headers list for ASGI frameworks May 2, 2024
@lzchen
Copy link
Contributor

lzchen commented Jun 5, 2024

@samuelcolvin

Hey gentle ping, are you still working on this?

@samuelcolvin
Copy link
Contributor Author

samuelcolvin commented Jun 5, 2024 via email

@ocelotl ocelotl merged commit f6ed62a into open-telemetry:main Jun 20, 2024
365 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants