-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Repeated headers list for ASGI frameworks #2361
Repeated headers list for ASGI frameworks #2361
Conversation
...tation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py
Show resolved
Hide resolved
@samuelcolvin please rebase |
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. |
instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py
Outdated
Show resolved
Hide resolved
util/opentelemetry-util-http/src/opentelemetry/util/http/__init__.py
Outdated
Show resolved
Hide resolved
Hey gentle ping, are you still working on this? |
Sorry, I've been busy and dropped the ball, I'll try to fix soon.
Samuel
…On Wed, 5 Jun 2024, 19:20 Leighton Chen, ***@***.***> wrote:
@samuelcolvin <https://github.com/samuelcolvin>
Hey gentle ping, are you still working on this?
—
Reply to this email directly, view it on GitHub
<#2361 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA62GGJJ2B6XQPELBV7F56LZF5JGLAVCNFSM6AAAAABE7Y4VZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJQGY4DCMZVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
* avoid loosing repeated HTTP headers * fix fof wsgi, test in falcon * add changelog * add more tests * linting * fix falcon and flask * remove unused test * Use a list for repeated HTTP headers * linting * add changelog entry * update docs and improve fastapi tests * revert changes in wsgi based webframeworks * fix linting * Fix import path of typing symbols --------- Co-authored-by: Leighton Chen <lechen@microsoft.com> Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
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.
How Has This Been Tested?
tests updated
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.