Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Apr 9, 2024
1 parent 5eb9d53 commit 807a125
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ public static void ConfigureServices(this WebAssemblyHostBuilder builder)
services.AddBlazorApplicationInsights(x =>
{
x.ConnectionString = builder.Configuration["ApplicationInsights:ConnectionString"];
},
async appInsights =>
{
await appInsights.AddTelemetryInitializer(new()
{
Tags = new Dictionary<string, object?>()
{
{ "ai.application.ver", typeof(Program).Assembly.GetName().Version!.ToString() }
}
});
});
//#endif

Expand Down

0 comments on commit 807a125

Please sign in to comment.