Skip to content

Commit

Permalink
Add ActivityHeadersPropagator into Direct.Sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Katya Sokolova committed Jan 27, 2022
1 parent 7b91dfd commit 2b905fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion samples/ReverseProxy.Direct.Sample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b905fd

Please sign in to comment.