diff --git a/ddtrace/propagation/http.py b/ddtrace/propagation/http.py index c64003d667..6580df7d2b 100644 --- a/ddtrace/propagation/http.py +++ b/ddtrace/propagation/http.py @@ -1095,7 +1095,6 @@ def parent_call(): @staticmethod def extract(headers): - # type: (Dict[str,str]) -> Context """Extract a Context from HTTP headers into a new Context. For tracecontext propagation we extract tracestate headers for propagation even if another propagation style is specified before tracecontext, @@ -1130,6 +1129,7 @@ def my_controller(url, headers): context = propagator._extract(normalized_headers) # type: ignore if config.propagation_http_baggage_enabled is True: _attach_baggage_to_context(normalized_headers, context) + break # loop through all extract propagation styles else: