Skip to content

Commit d476798

Browse files
committed
Update WebHostBuilder.cs
1 parent 73ed578 commit d476798

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Hosting/Hosting/src/WebHostBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ private IServiceCollection BuildCommonServices(out AggregateException? hostingSt
293293
services.TryAddSingleton(sp => new DiagnosticListener("Microsoft.AspNetCore"));
294294
services.TryAddSingleton<DiagnosticSource>(sp => sp.GetRequiredService<DiagnosticListener>());
295295
services.TryAddSingleton(sp => new ActivitySource("Microsoft.AspNetCore"));
296+
services.TryAddSingleton(sp => TextMapPropagator.Default);
296297

297298
services.AddTransient<IApplicationBuilderFactory, ApplicationBuilderFactory>();
298299
services.AddTransient<IHttpContextFactory, DefaultHttpContextFactory>();

0 commit comments

Comments
 (0)