-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What should the default DistributedContextPropagator be #56794
Comments
Tagging subscribers to this area: @tommcdon, @krwq Issue Details#50658 and #55556 added APIs for controlling distributed context propagation. HttpClient and ASP.NET Core both consume these APIs and as such inherit the default behavior.
Having injection ON by default means some user scenarios work out of the box:
On the other hand it brings some downsides:
For 7.0, we should decide whether injecting context is the right default for the platform. cc: @tarekgh @noahfalk @shirhatti @davidfowl @dotnet/ncl
|
Moving older issues to the Future milestone as it is unlikely we will have time to address this in the .NET 7 timeframe. Please feel free to move this issue back to .NET 7 if there is active work to address the feature request. |
Given we're not changing anything here for 7 and there appears to be no interest in doing so in the future, I'm fine with just closing this. |
#50658 and #55556 added APIs for controlling distributed context propagation.
Part of those APIs is a
CreateDefaultPropagator
method that is used to seed the global staticCurrent
property.HttpClient and ASP.NET Core both consume these APIs and as such inherit the default behavior.
CreateDefaultPropagator
currently returns aLegacyPropagator
, which is preserving pre-.NET 6 behavior of injecting context by default.Having injection ON by default means some user scenarios work out of the box:
On the other hand it brings some downsides:
For 7.0, we should decide whether injecting context is the right default for the platform.
cc: @tarekgh @noahfalk @shirhatti @davidfowl @dotnet/ncl
The text was updated successfully, but these errors were encountered: