Fixed asgi server distracing issues
* Fixed asgi server distracing issues
Uvicorn and Daphne sends headers in list not in dict
* Update disttracing.py
* Update disttracing.py
@@ -118,6 +118,12 @@ class TraceParent(object):
:return: a single string value or None
"""
# this works for all known WSGI implementations
+ if isinstance(headers, list):
+ return ",".join([
+ item[1]
+ for item in headers
+ if item[0] == key
+ ])
return headers.get(key)
