A collection of Telemetry Initializers to help you get the most out of Application Insights for .NET Core and ASP.NET Core apps
Note: Currently only supports ASP.NET Core 3.1 or greater
Install the Nuget Package
dotnet add package AspNetMonsters.ApplicationInsights.AspNetCore
In the ConfigureServices method in Startup.cs, call the AddCloudRoleNameInitializer method, passing in the cloud role name for the process.
For example:
services.AddApplicationInsightsTelemetry();
services.AddCloudRoleNameInitializer("PaymentService");
Install the Nuget Package
dotnet add package AspNetMonsters.ApplicationInsights
// How to register the telemetry initializer