Propagation Getter spec can't support W3C spec #1870
Labels
area:api
Cross language API specification issue
spec:context
Related to the specification/context directory
The specification for Otel's TextMap propagator
Get
function and the W3C spec conflict in how to handle multiple of the same key in a list of pairs. The Otel spec has an optionalGet
that must return value, https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/context/api-propagators.md#get, while in W3C in the case oftraceparent
a new trace should be started: https://github.com/w3c/trace-context/blob/main/test/test.py#L136-L137For
tracestate
W3C says it must combine the values of thetracestate
key.I think
Getter
has to change to return every pair with the key being looked up. But this is not backwards compatible? Maybe it will have to be that theget
function can return a single value if only one is found but a list if there are multiple? That way existingGetter
implementations continue to work.The text was updated successfully, but these errors were encountered: