← All recipes
Moderne licensed

Find DistributedContextPropagator default propagator change

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindDistributedContextPropagatorArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds usages of DistributedContextPropagator.Current and DistributedContextPropagator.CreateDefaultPropagator() which now default to W3C format in .NET 10. The 'baggage' header is used instead of 'Correlation-Context'.

Single recipenet10diagnosticssearchdotnetProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindDistributedContextPropagator

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet