diff --git a/samples/frontend-backend/backend/Program.cs b/samples/frontend-backend/backend/Program.cs index 5659e57e..e66cb604 100644 --- a/samples/frontend-backend/backend/Program.cs +++ b/samples/frontend-backend/backend/Program.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Diagnostics; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; @@ -11,6 +12,7 @@ namespace Backend { public static void Main(string[] args) { + Activity.DefaultIdFormat = ActivityIdFormat.W3C; CreateHostBuilder(args).Build().Run(); } diff --git a/samples/frontend-backend/frontend/Program.cs b/samples/frontend-backend/frontend/Program.cs index 122bc514..5c7efceb 100644 --- a/samples/frontend-backend/frontend/Program.cs +++ b/samples/frontend-backend/frontend/Program.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Diagnostics; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; @@ -11,6 +12,7 @@ namespace Frontend { public static void Main(string[] args) { + Activity.DefaultIdFormat = ActivityIdFormat.W3C; CreateHostBuilder(args).Build().Run(); }