Application Insights Asp.Net v5Web 应用监视控件
Application Insights Asp.Net v5 是 Web 应用监视中间控件。
示例代码:
// Add Application Insights monitoring to the request pipeline as a very first middleware. app.UseApplicationInsightsRequestTelemetry(); ... // Add the following to the request pipeline only in development environment. if (string.Equals(env.EnvironmentName, "Development", StringComparison.OrdinalIgnoreCase)) { app.SetApplicationInsightsTelemetryDeveloperMode(); } ... // Add Application Insights exceptions handling to the request pipeline. app.UseApplicationInsightsExceptionTelemetry();
评论