You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Oberon00 - This appears to be by design (added in #1048) since ASP.NET and ASP.NET Core automatically extract the W3C trace context when handling incoming requests, so there's no need to parse the headers a second time, adding a small amount of overhead. It, therefore, handles cases when an ActivityContext hasn't already been parsed (i.e. when ASP.NET (Core) is not involved). This seems reasonable, and I don't think the spec prohibits this. @martinjt, if @CodeBlanch agrees, I think we can close this.
Affected code:
opentelemetry-dotnet/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs
Lines 53 to 59 in aad309b
This will not extract a Context from the carrier if there already is one in the input context.
This is against the base class documentation which says:
opentelemetry-dotnet/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs
Lines 45 to 53 in aad309b
The base class docs conform to the OTel spec (or at least my understanding of it and the Java implementation), the TraceContextPropagator implementation does not. https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/context/api-propagators.md#extract
The text was updated successfully, but these errors were encountered: