public class AppInsightsInitializer : ITelemetryInitializer { public void Initialize (ITelemetry telemetry) { var identity = WindowsIdentity.GetCurrent (); if (identity != null) { var name = new WindowsPrincipal (identity); telemetry.Context.User.AuthenticatedUserId = name.Identity.Name; } } } This works well on a localmachine. For example, you could reduce the volume of telemetry by excluding requests from robots. If builder.Services.AddApplicationInsightsTelemetry(aiOptions) for ASP.NET Core 6.0 or services.AddApplicationInsightsTelemetry(aiOptions) for ASP.NET Core 3.1 and earlier is used, it overrides the settings from Microsoft.Extensions.Configuration.IConfiguration. Although the name of its package and namespace includes "WindowsServer," this channel is supported on systems other than Windows, with the following exception. Linear Algebra - Linear transformation question. For the latest updates and bug fixes, consult the release notes. It's important to note that the following example doesn't cause the Application Insights provider to capture Information logs. A {0} is substituted at runtime per request with the instrumentation key. The following section from ApplicationInsights.config shows the ServerTelemetryChannel channel configured with StorageFolder set to a custom location: The following code sets up a ServerTelemetryChannel instance with StorageFolder set to a custom location. How to use Slater Type Orbitals as a basis functions in matrix method correctly? SDK versions 2.8.0 and later support the CPU/memory counter in Linux. Use the NuGet package manager reference the Microsoft.ApplicationInsights package in your console application. Use ScriptBody if you need to control the