diff --git a/samples/ReverseProxy.Direct.Sample/Startup.cs b/samples/ReverseProxy.Direct.Sample/Startup.cs index f72760131..bdb9c360d 100644 --- a/samples/ReverseProxy.Direct.Sample/Startup.cs +++ b/samples/ReverseProxy.Direct.Sample/Startup.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.Diagnostics; using System.Net; using System.Net.Http; using System.Threading.Tasks; @@ -38,7 +39,10 @@ public void Configure(IApplicationBuilder app, IHttpForwarder forwarder) UseProxy = false, AllowAutoRedirect = false, AutomaticDecompression = DecompressionMethods.None, - UseCookies = false + UseCookies = false, +#if NET6_0_OR_GREATER + ActivityHeadersPropagator = new ReverseProxyPropagator(DistributedContextPropagator.Current) +#endif }); // Setup our own request transform class